Class: Autumn::Stem::Parameter

Inherits:
Object
  • Object
show all
Defined in:
lib/autumn/stem.rb

Overview

A parameter in an IRC command.

Instance Attribute Summary collapse

Instance Method Summary collapse

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, options={})
  @name = newname
  @required = options[:required] or true
  @colonize = options[:colonize] or false
  @list = options[:list] or false
end

Instance Attribute Details

#colonizeObject (readonly)

Returns the value of attribute colonize.



170
171
172
# File 'lib/autumn/stem.rb', line 170

def colonize
  @colonize
end

#listObject (readonly)

Returns the value of attribute list.



171
172
173
# File 'lib/autumn/stem.rb', line 171

def list
  @list
end

#nameObject (readonly)

:nodoc:



168
169
170
# File 'lib/autumn/stem.rb', line 168

def name
  @name
end

#requiredObject (readonly)

Returns the value of attribute required.



169
170
171
# File 'lib/autumn/stem.rb', line 169

def required
  @required
end