Class: TinyIRC::Command::Branch
- Inherits:
-
Object
- Object
- TinyIRC::Command::Branch
- Defined in:
- lib/tinyirc/command.rb
Instance Attribute Summary collapse
-
#cmd ⇒ Object
readonly
Returns the value of attribute cmd.
-
#cooldown ⇒ Object
Returns the value of attribute cooldown.
-
#definition ⇒ Object
readonly
Returns the value of attribute definition.
-
#description ⇒ Object
Returns the value of attribute description.
-
#handler ⇒ Object
readonly
Returns the value of attribute handler.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#last_uses ⇒ Object
readonly
Returns the value of attribute last_uses.
Instance Method Summary collapse
-
#initialize(cmd, id, definition, handler) ⇒ Branch
constructor
A new instance of Branch.
Constructor Details
#initialize(cmd, id, definition, handler) ⇒ Branch
Returns a new instance of Branch.
12 13 14 15 16 17 18 19 20 |
# File 'lib/tinyirc/command.rb', line 12 def initialize(cmd, id, definition, handler) @cmd = cmd @cooldown = 0 @id = id @definition = definition @description = '' @handler = handler @last_uses = {} end |
Instance Attribute Details
#cmd ⇒ Object (readonly)
Returns the value of attribute cmd.
9 10 11 |
# File 'lib/tinyirc/command.rb', line 9 def cmd @cmd end |
#cooldown ⇒ Object
Returns the value of attribute cooldown.
10 11 12 |
# File 'lib/tinyirc/command.rb', line 10 def cooldown @cooldown end |
#definition ⇒ Object (readonly)
Returns the value of attribute definition.
9 10 11 |
# File 'lib/tinyirc/command.rb', line 9 def definition @definition end |
#description ⇒ Object
Returns the value of attribute description.
10 11 12 |
# File 'lib/tinyirc/command.rb', line 10 def description @description end |
#handler ⇒ Object (readonly)
Returns the value of attribute handler.
9 10 11 |
# File 'lib/tinyirc/command.rb', line 9 def handler @handler end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
9 10 11 |
# File 'lib/tinyirc/command.rb', line 9 def id @id end |
#last_uses ⇒ Object (readonly)
Returns the value of attribute last_uses.
9 10 11 |
# File 'lib/tinyirc/command.rb', line 9 def last_uses @last_uses end |