Class: Cleon::Param
- Inherits:
-
Object
- Object
- Cleon::Param
- Defined in:
- lib/cleon/model.rb
Instance Attribute Summary collapse
-
#guard ⇒ Object
readonly
Returns the value of attribute guard.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name) ⇒ Param
constructor
A new instance of Param.
Constructor Details
#initialize(name) ⇒ Param
Returns a new instance of Param.
11 12 13 |
# File 'lib/cleon/model.rb', line 11 def initialize(name) @name, @guard = name.split(':') end |
Instance Attribute Details
#guard ⇒ Object (readonly)
Returns the value of attribute guard.
9 10 11 |
# File 'lib/cleon/model.rb', line 9 def guard @guard end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
8 9 10 |
# File 'lib/cleon/model.rb', line 8 def name @name end |