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.
210 211 212 |
# File 'lib/setup_configuration/setup_config.rb', line 210 def initialize @parameter = [] end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
207 208 209 |
# File 'lib/setup_configuration/setup_config.rb', line 207 def name @name end |
#number ⇒ Object
Returns the value of attribute number.
206 207 208 |
# File 'lib/setup_configuration/setup_config.rb', line 206 def number @number end |
#parameter ⇒ Object
Returns the value of attribute parameter.
208 209 210 |
# File 'lib/setup_configuration/setup_config.rb', line 208 def parameter @parameter end |
Instance Method Details
#<=>(parameter) ⇒ Object
214 215 216 |
# File 'lib/setup_configuration/setup_config.rb', line 214 def <=>(parameter) self.number <=> parameter.number end |