Module: Junoser::Display::Enumerable
- Included in:
- ConfigStore
- Defined in:
- lib/junoser/display/enumerable.rb
Instance Attribute Summary collapse
-
#in_from ⇒ Object
Returns the value of attribute in_from.
-
#in_group ⇒ Object
Returns the value of attribute in_group.
-
#in_then ⇒ Object
Returns the value of attribute in_then.
Instance Method Summary collapse
Instance Attribute Details
#in_from ⇒ Object
Returns the value of attribute in_from.
6 7 8 |
# File 'lib/junoser/display/enumerable.rb', line 6 def in_from @in_from end |
#in_group ⇒ Object
Returns the value of attribute in_group.
6 7 8 |
# File 'lib/junoser/display/enumerable.rb', line 6 def in_group @in_group end |
#in_then ⇒ Object
Returns the value of attribute in_then.
6 7 8 |
# File 'lib/junoser/display/enumerable.rb', line 6 def in_then @in_then end |
Instance Method Details
#to_enum ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/junoser/display/enumerable.rb', line 8 def to_enum if @hash.size > 1 "[#{@hash.keys.join(' ')}]" else @hash.keys.first end end |