Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (10 sloc) 156 Bytes
java_import java.util.ArrayList
class ArrayList
def <<(element)
add element
self
end
end
a = ArrayList.new
a << 1 << 2
puts a # [1, 2]