Class: Mode
- Inherits:
-
Object
- Object
- Mode
- Defined in:
- lib/rlirc/config.rb
Overview
–
$Id: config.rb,v 1.4 2004/09/16 20:05:45 inando Exp $
$Source: /var/cvs/rlirc/rlirc/lib/rlirc/config.rb,v $
++
Basic class for configuration classes
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#remote ⇒ Object
Returns the value of attribute remote.
Instance Method Summary collapse
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
11 12 13 |
# File 'lib/rlirc/config.rb', line 11 def code @code end |
#remote ⇒ Object
Returns the value of attribute remote.
11 12 13 |
# File 'lib/rlirc/config.rb', line 11 def remote @remote end |
Instance Method Details
#change_mode(name) ⇒ Object
13 14 15 |
# File 'lib/rlirc/config.rb', line 13 def change_mode(name) $mode = name.new end |
#end_mode ⇒ Object
17 18 19 |
# File 'lib/rlirc/config.rb', line 17 def end_mode $mode = ModeMain.new end |