Files
atom/bundles/ruby.tmbundle/Tests/rubylexer/newsyntax.rb
Corey Johnson & Nathan Sobo f84f9c5dd2 Add bundles and themes
2012-08-27 13:20:22 -07:00

19 lines
232 B
Ruby

x, (*), z = [:x, :y, :z]
p x
p z
x, (*y), z = [:x, :y, :z]
p x
p y
p z
p($/ = ' '; Array( "i'm in your house" ))
class Foou
public
def [] x=-100,&y=nil; p x; 100 end
end
p Foou.new.[]?9 #value
p Foou.new.[] ?9 #value