These are chat archives for opal/opal
.the same in JS as Ruby.
tr.add_class (new_is_read == '1' ? 'read' : 'unread')- try to remove here the space after
def m(*args) p args end m (1) # => 1 m (2, 3) # => SyntaxError
method_name (arg)you have to pass exactly one argument. If you don't pass any arguments (
m ()) Ruby automagically passes
nilto the method.
Hash.keys => Hash.$$keys Hash.map => Hash.$$map Hash.smap => Hash.$$smap
object.propertyis an instance variable
$$propis an internal Opal property
/\s*([A-Z]\w*::(?:[A-Z]+\w*(?:::)?)*)+$/acts different in 0.8 and 0.9, in 0.9 it does what I expect, but in 0.8 it's not "greedy enough" if I were to describe it in 2 words