Class: RubyFlashbakeOptions
- Inherits:
-
Object
- Object
- RubyFlashbakeOptions
- Defined in:
- lib/rubyflashbake/options.rb
Constant Summary collapse
- DEFAULT_CONFIG_FILE =
".rubyflashbake"
Instance Attribute Summary collapse
-
#config_file ⇒ Object
readonly
Returns the value of attribute config_file.
Instance Method Summary collapse
-
#initialize(argv) ⇒ RubyFlashbakeOptions
constructor
A new instance of RubyFlashbakeOptions.
- #test(val) ⇒ Object
Constructor Details
#initialize(argv) ⇒ RubyFlashbakeOptions
Returns a new instance of RubyFlashbakeOptions.
13 14 15 16 |
# File 'lib/rubyflashbake/options.rb', line 13 def initialize(argv) @config_file = DEFAULT_CONFIG_FILE parse(argv) end |
Instance Attribute Details
#config_file ⇒ Object (readonly)
Returns the value of attribute config_file.
11 12 13 |
# File 'lib/rubyflashbake/options.rb', line 11 def config_file @config_file end |
Instance Method Details
#test(val) ⇒ Object
18 19 20 |
# File 'lib/rubyflashbake/options.rb', line 18 def test(val) [:config_file => @config_file] == val end |