Class: Struct
- Inherits:
-
Object
- Object
- Struct
- Defined in:
- src/parser.rb
Instance Method Summary collapse
Instance Method Details
#represent ⇒ Object
21 22 23 |
# File 'src/parser.rb', line 21 def represent { self.class.to_s[/([^:]+)$/,1].underscore.to_sym => to_h.transform_values { _1.respond_to?(:represent) ? _1.represent : _1 } } end |