Skip to content

Instantly share code, notes, and snippets.

View robertodecurnex's full-sized avatar

Roberto Decurnex robertodecurnex

View GitHub Profile
class Sample
def hello name
# sc
end
def sum n1, n2
# sc sum n1, n2
end
λ = lambda {|name| "#{name} es un maricon que no se banca el alfabeto griego"}
λ.call('Franquito')
#=> "Franquito es un maricon que no se banca el alfabeto griego"
@robertodecurnex
robertodecurnex / heredoc
Last active August 29, 2015 14:17
Having Fun With Unicode and String Literals
puts <<THIS_IS_A_HEREDOC
And this is the content of the heredoc.
It's obviously multi-line.
And it's great for creating help messages and things like that.
THIS_IS_A_HEREDOC
#=> And this is the content of the heredoc.
# It's obviously multi-line.
# And it's great for creating help messages and things like that.
@robertodecurnex
robertodecurnex / conventional_naming.rb
Last active August 29, 2015 14:19
where the wild ruby-things are
# upper-camel case
class ClassLikeName
end
# lower-snake case
def method_like_name
return 'method return value'
end
ClassLikeName #=> ClassLikeName