Class: Autumn::Stem::Parameter
- Inherits:
-
Object
- Object
- Autumn::Stem::Parameter
- Defined in:
- lib/autumn/stem.rb
Overview
A parameter in an IRC command.
Instance Attribute Summary collapse
-
#colonize ⇒ Object
readonly
Returns the value of attribute colonize.
-
#list ⇒ Object
readonly
Returns the value of attribute list.
-
#name ⇒ Object
readonly
:nodoc:.
-
#required ⇒ Object
readonly
Returns the value of attribute required.
Instance Method Summary collapse
-
#initialize(newname, options = {}) ⇒ Parameter
constructor
A new instance of Parameter.
Constructor Details
#initialize(newname, options = {}) ⇒ Parameter
Returns a new instance of Parameter.
173 174 175 176 177 178 |
# File 'lib/autumn/stem.rb', line 173 def initialize(newname, ={}) @name = newname @required = [:required] or true @colonize = [:colonize] or false @list = [:list] or false end |
Instance Attribute Details
#colonize ⇒ Object (readonly)
Returns the value of attribute colonize.
170 171 172 |
# File 'lib/autumn/stem.rb', line 170 def colonize @colonize end |
#list ⇒ Object (readonly)
Returns the value of attribute list.
171 172 173 |
# File 'lib/autumn/stem.rb', line 171 def list @list end |
#name ⇒ Object (readonly)
:nodoc:
168 169 170 |
# File 'lib/autumn/stem.rb', line 168 def name @name end |
#required ⇒ Object (readonly)
Returns the value of attribute required.
169 170 171 |
# File 'lib/autumn/stem.rb', line 169 def required @required end |