Class: IRCd::FileConf
- Inherits:
-
Object
- Object
- IRCd::FileConf
- Defined in:
- lib/rupircd/conf.rb
Instance Attribute Summary collapse
-
#conf ⇒ Object
readonly
Returns the value of attribute conf.
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(path) ⇒ FileConf
constructor
A new instance of FileConf.
- #load ⇒ Object
Constructor Details
#initialize(path) ⇒ FileConf
Returns a new instance of FileConf.
16 17 18 19 |
# File 'lib/rupircd/conf.rb', line 16 def initialize(path) @path = path @conf = {} end |
Instance Attribute Details
#conf ⇒ Object (readonly)
Returns the value of attribute conf.
13 14 15 |
# File 'lib/rupircd/conf.rb', line 13 def conf @conf end |
#path ⇒ Object
Returns the value of attribute path.
14 15 16 |
# File 'lib/rupircd/conf.rb', line 14 def path @path end |
Instance Method Details
#load ⇒ Object
21 22 23 |
# File 'lib/rupircd/conf.rb', line 21 def load @conf = eval(open(@path){|f| f.read }) end |