Class: SetupConfiguration::Category
- Inherits:
-
Object
- Object
- SetupConfiguration::Category
- Includes:
- Enumerable
- Defined in:
- lib/setup_configuration/setup_config.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#number ⇒ Object
Returns the value of attribute number.
-
#parameter ⇒ Object
Returns the value of attribute parameter.
Instance Method Summary collapse
- #<=>(parameter) ⇒ Object
-
#initialize ⇒ Category
constructor
A new instance of Category.
Constructor Details
#initialize ⇒ Category
Returns a new instance of Category.
208 209 210 |
# File 'lib/setup_configuration/setup_config.rb', line 208 def initialize() @parameter = [] end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
205 206 207 |
# File 'lib/setup_configuration/setup_config.rb', line 205 def name @name end |
#number ⇒ Object
Returns the value of attribute number.
204 205 206 |
# File 'lib/setup_configuration/setup_config.rb', line 204 def number @number end |
#parameter ⇒ Object
Returns the value of attribute parameter.
206 207 208 |
# File 'lib/setup_configuration/setup_config.rb', line 206 def parameter @parameter end |
Instance Method Details
#<=>(parameter) ⇒ Object
212 213 214 |
# File 'lib/setup_configuration/setup_config.rb', line 212 def <=>(parameter) self.number <=> parameter.number end |