Class: Struct
Direct Known Subclasses
Instance Method Summary collapse
-
#to_n ⇒ Object
values as values.
Instance Method Details
#to_n ⇒ Object
values as values.
478 479 480 481 482 483 484 485 486 |
# File 'opal/stdlib/native.rb', line 478 def to_n result = `{}` each_pair {|name, value| `#{result}[#{name}] = #{Native.try_convert(value, value)}` } result end |