Class: Brio::RCFile
Constant Summary collapse
- FILE_NAME =
".brio.rc"
Instance Method Summary collapse
- #[](param) ⇒ Object
- #[]=(param, val) ⇒ Object
- #config ⇒ Object
- #empty? ⇒ Boolean
-
#initialize ⇒ RCFile
constructor
A new instance of RCFile.
Constructor Details
Instance Method Details
#[](param) ⇒ Object
20 21 22 |
# File 'lib/brio/rcfile.rb', line 20 def [](param) config[param] end |
#[]=(param, val) ⇒ Object
15 16 17 18 |
# File 'lib/brio/rcfile.rb', line 15 def []=(param, val) config[param] = val save_data end |
#config ⇒ Object
24 25 26 |
# File 'lib/brio/rcfile.rb', line 24 def config @data['config'] end |
#empty? ⇒ Boolean
28 29 30 |
# File 'lib/brio/rcfile.rb', line 28 def empty? @data == default_config end |