Class: Wrake::Command::Options
- Inherits:
-
Object
- Object
- Wrake::Command::Options
- Defined in:
- lib/wrake/command/options.rb
Defined Under Namespace
Classes: Error
Instance Attribute Summary collapse
-
#config_file ⇒ Object
readonly
Returns the value of attribute config_file.
-
#env ⇒ Object
readonly
Returns the value of attribute env.
-
#task_args ⇒ Object
readonly
Returns the value of attribute task_args.
-
#task_name ⇒ Object
readonly
Returns the value of attribute task_name.
Instance Method Summary collapse
-
#initialize(options = []) ⇒ Options
constructor
A new instance of Options.
Constructor Details
#initialize(options = []) ⇒ Options
Returns a new instance of Options.
10 11 12 13 |
# File 'lib/wrake/command/options.rb', line 10 def initialize( = []) @env = 'production' parse() end |
Instance Attribute Details
#config_file ⇒ Object (readonly)
Returns the value of attribute config_file.
8 9 10 |
# File 'lib/wrake/command/options.rb', line 8 def config_file @config_file end |
#env ⇒ Object (readonly)
Returns the value of attribute env.
8 9 10 |
# File 'lib/wrake/command/options.rb', line 8 def env @env end |
#task_args ⇒ Object (readonly)
Returns the value of attribute task_args.
8 9 10 |
# File 'lib/wrake/command/options.rb', line 8 def task_args @task_args end |
#task_name ⇒ Object (readonly)
Returns the value of attribute task_name.
8 9 10 |
# File 'lib/wrake/command/options.rb', line 8 def task_name @task_name end |