Class: Flipflop::GroupDefinition

Inherits:
Object
  • Object
show all
Defined in:
lib/flipflop/group_definition.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key) ⇒ GroupDefinition

Returns a new instance of GroupDefinition.



5
6
7
8
9
# File 'lib/flipflop/group_definition.rb', line 5

def initialize(key)
  @key = key
  @name = @key.to_s.freeze
  @title = @name.humanize.freeze
end

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



3
4
5
# File 'lib/flipflop/group_definition.rb', line 3

def key
  @key
end

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/flipflop/group_definition.rb', line 3

def name
  @name
end

#titleObject (readonly)

Returns the value of attribute title.



3
4
5
# File 'lib/flipflop/group_definition.rb', line 3

def title
  @title
end