Class: Grizzled::Grinc::Parameters
- Inherits:
-
Object
- Object
- Grizzled::Grinc::Parameters
- Defined in:
- lib/grizzled/grinc.rb
Overview
Classes
Instance Attribute Summary collapse
-
#input_paths ⇒ Object
readonly
Returns the value of attribute input_paths.
-
#max_nesting ⇒ Object
readonly
Returns the value of attribute max_nesting.
-
#output ⇒ Object
readonly
Returns the value of attribute output.
Instance Method Summary collapse
-
#initialize(options_hash, argv) ⇒ Parameters
constructor
A new instance of Parameters.
- #to_s ⇒ Object
Constructor Details
#initialize(options_hash, argv) ⇒ Parameters
Returns a new instance of Parameters.
64 65 66 67 68 |
# File 'lib/grizzled/grinc.rb', line 64 def initialize(, argv) @output = [:output] @max_nesting = [:max_nesting] || DEFAULT_MAX_NEST @input_paths = argv.length == 0 ? nil : argv end |
Instance Attribute Details
#input_paths ⇒ Object (readonly)
Returns the value of attribute input_paths.
62 63 64 |
# File 'lib/grizzled/grinc.rb', line 62 def input_paths @input_paths end |
#max_nesting ⇒ Object (readonly)
Returns the value of attribute max_nesting.
62 63 64 |
# File 'lib/grizzled/grinc.rb', line 62 def max_nesting @max_nesting end |
#output ⇒ Object (readonly)
Returns the value of attribute output.
62 63 64 |
# File 'lib/grizzled/grinc.rb', line 62 def output @output end |
Instance Method Details
#to_s ⇒ Object
70 71 72 |
# File 'lib/grizzled/grinc.rb', line 70 def to_s inspect end |