mirror of
https://github.com/catppuccin/catppuccin
synced 2024-11-24 04:23:05 +00:00
chore(samples): add ruby.rb
(#2329)
Eventually, I'd like to move the samples directory to another repository. Potentially catppuccin/toolbox?
This commit is contained in:
parent
f31a11c66a
commit
f80a9c11ef
1 changed files with 34 additions and 0 deletions
34
samples/ruby.rb
Normal file
34
samples/ruby.rb
Normal file
|
@ -0,0 +1,34 @@
|
|||
require "test"
|
||||
CONSTANT = 777
|
||||
|
||||
# Sample comment
|
||||
|
||||
class Module::Class
|
||||
include Testcase
|
||||
|
||||
render :action => 'foo'
|
||||
def foo(parameter)
|
||||
@parameter = parameter
|
||||
end
|
||||
|
||||
local_var = eval <<-"FOO";\
|
||||
printIndex "Hello world!"
|
||||
And now this is heredoc!
|
||||
printIndex "Hello world again!"
|
||||
FOO
|
||||
foo("#{$GLOBAL_TIME >> $`} is \Z sample \"string\"" * 777);
|
||||
if ($1 =~ /sample regular expression/ni)
|
||||
begin
|
||||
puts %W(sample words), CONSTANT, :fooo;
|
||||
do_something :action => "action"
|
||||
end
|
||||
expect{counter[0]}.to_be eq 1
|
||||
json = {
|
||||
id: id,
|
||||
guid: guid,
|
||||
}
|
||||
json.merge!(name: profile.name)
|
||||
1.upto(@@n) do |index| printIndex 'Hello' + index end
|
||||
\\\\\\\\\\
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue