Module: Junoser::Display::Enumerable

Included in:
ConfigStore
Defined in:
lib/junoser/display/enumerable.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#in_fromObject

Returns the value of attribute in_from.



8
9
10
# File 'lib/junoser/display/enumerable.rb', line 8

def in_from
  @in_from
end

#in_groupObject

Returns the value of attribute in_group.



8
9
10
# File 'lib/junoser/display/enumerable.rb', line 8

def in_group
  @in_group
end

#in_thenObject

Returns the value of attribute in_then.



8
9
10
# File 'lib/junoser/display/enumerable.rb', line 8

def in_then
  @in_then
end

Instance Method Details

#to_enumObject



10
11
12
13
14
15
16
# File 'lib/junoser/display/enumerable.rb', line 10

def to_enum
  if @hash.size > 1
    "[#{@hash.keys.join(' ')}]"
  else
    @hash.keys.first
  end
end