Class: Rubycli::CommandLine::Options
- Inherits:
-
Struct
- Object
- Struct
- Rubycli::CommandLine::Options
- Defined in:
- lib/rubycli/command_line.rb
Overview
Flags collected before the target path; forwarded to Rubycli::Runner.
Instance Attribute Summary collapse
-
#check_mode ⇒ Object
Returns the value of attribute check_mode.
-
#constant_mode ⇒ Object
Returns the value of attribute constant_mode.
-
#eval_lax ⇒ Object
Returns the value of attribute eval_lax.
-
#eval_mode ⇒ Object
Returns the value of attribute eval_mode.
-
#json_mode ⇒ Object
Returns the value of attribute json_mode.
-
#new_args ⇒ Object
Returns the value of attribute new_args.
-
#new_flag ⇒ Object
Returns the value of attribute new_flag.
-
#pre_scripts ⇒ Object
Returns the value of attribute pre_scripts.
Class Method Summary collapse
Instance Attribute Details
#check_mode ⇒ Object
Returns the value of attribute check_mode
35 36 37 |
# File 'lib/rubycli/command_line.rb', line 35 def check_mode @check_mode end |
#constant_mode ⇒ Object
Returns the value of attribute constant_mode
35 36 37 |
# File 'lib/rubycli/command_line.rb', line 35 def constant_mode @constant_mode end |
#eval_lax ⇒ Object
Returns the value of attribute eval_lax
35 36 37 |
# File 'lib/rubycli/command_line.rb', line 35 def eval_lax @eval_lax end |
#eval_mode ⇒ Object
Returns the value of attribute eval_mode
35 36 37 |
# File 'lib/rubycli/command_line.rb', line 35 def eval_mode @eval_mode end |
#json_mode ⇒ Object
Returns the value of attribute json_mode
35 36 37 |
# File 'lib/rubycli/command_line.rb', line 35 def json_mode @json_mode end |
#new_args ⇒ Object
Returns the value of attribute new_args
35 36 37 |
# File 'lib/rubycli/command_line.rb', line 35 def new_args @new_args end |
#new_flag ⇒ Object
Returns the value of attribute new_flag
35 36 37 |
# File 'lib/rubycli/command_line.rb', line 35 def new_flag @new_flag end |
#pre_scripts ⇒ Object
Returns the value of attribute pre_scripts
35 36 37 |
# File 'lib/rubycli/command_line.rb', line 35 def pre_scripts @pre_scripts end |
Class Method Details
.defaults ⇒ Object
46 47 48 49 50 51 52 53 54 55 56 57 |
# File 'lib/rubycli/command_line.rb', line 46 def self.defaults new( new_flag: false, new_args: nil, json_mode: false, eval_mode: false, eval_lax: false, constant_mode: nil, check_mode: false, pre_scripts: [] ) end |