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.



6
7
8
# File 'lib/junoser/display/enumerable.rb', line 6

def in_from
  @in_from
end

#in_groupObject

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_thenObject

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_enumObject



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