Class: Qwe::Proxy::Array
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_array(thing, name, arr = []) ⇒ Object
15 16 17 18 19 20 21 22 23 24 |
# File 'lib/qwe/proxy/array.rb', line 15 def self.from_array(thing, name, arr = []) if arr.is_a?(Qwe::Proxy::Array) arr else a = new(arr) a.__qwe_thing = thing a.__qwe_name = name a end end |
Instance Method Details
#to_rb ⇒ Object
26 27 28 |
# File 'lib/qwe/proxy/array.rb', line 26 def to_rb "Qwe::Proxy::Array.from_array(#{__qwe_thing.to_rb}, :#{__qwe_name}, #{super})" end |