Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/frontman/custom_struct.rb
Instance Method Summary collapse
Instance Method Details
#to_ostruct ⇒ Object
39 40 41 42 43 |
# File 'lib/frontman/custom_struct.rb', line 39 def to_ostruct map do |item| item.respond_to?(:to_ostruct) ? item.to_ostruct : item end end |