Class: Flipflop::GroupDefinition
- Inherits:
-
Object
- Object
- Flipflop::GroupDefinition
- Defined in:
- lib/flipflop/group_definition.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(key) ⇒ GroupDefinition
constructor
A new instance of GroupDefinition.
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
#key ⇒ Object (readonly)
Returns the value of attribute key.
3 4 5 |
# File 'lib/flipflop/group_definition.rb', line 3 def key @key end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/flipflop/group_definition.rb', line 3 def name @name end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
3 4 5 |
# File 'lib/flipflop/group_definition.rb', line 3 def title @title end |