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.
12 13 14 15 |
# File 'lib/rubyflashbake/options.rb', line 12 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.
10 11 12 |
# File 'lib/rubyflashbake/options.rb', line 10 def config_file @config_file end |
Instance Method Details
#test(val) ⇒ Object
17 18 19 |
# File 'lib/rubyflashbake/options.rb', line 17 def test(val) [:config_file => @config_file] == val end |