Class: Struct
Instance Method Summary collapse
-
#to_n ⇒ Object
values as values.
Instance Method Details
#to_n ⇒ Object
values as values.
483 484 485 486 487 488 489 490 491 |
# File 'opal/stdlib/native.rb', line 483 def to_n result = `{}` each_pair do |name, value| `#{result}[#{name}] = #{Native.try_convert(value, value)}` end result end |