Class: TT::ActionFactory::Option
- Inherits:
-
Struct
- Object
- Struct
- TT::ActionFactory::Option
- Defined in:
- lib/t_t/action_factory.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
Returns the value of attribute key.
-
#meta ⇒ Object
Returns the value of attribute meta.
Class Method Summary collapse
Instance Attribute Details
#key ⇒ Object
Returns the value of attribute key
4 5 6 |
# File 'lib/t_t/action_factory.rb', line 4 def key @key end |
#meta ⇒ Object
Returns the value of attribute meta
4 5 6 |
# File 'lib/t_t/action_factory.rb', line 4 def end |
Class Method Details
.parse(list) ⇒ Object
5 6 7 8 9 |
# File 'lib/t_t/action_factory.rb', line 5 def self.parse(list) list.flat_map do |item| item.respond_to?(:map) ? item.map { |key, | new(key, ) } : new(item) end end |