Class: Grizzled::Grinc::Parameters

Inherits:
Object
  • Object
show all
Defined in:
lib/grizzled/grinc.rb

Overview


Classes


Instance Attribute Summary collapse

Instance Method Summary collapse

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(options_hash, argv)
  @output = options_hash[:output]
  @max_nesting = options_hash[:max_nesting] || DEFAULT_MAX_NEST
  @input_paths = argv.length == 0 ? nil : argv
end

Instance Attribute Details

#input_pathsObject (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_nestingObject (readonly)

Returns the value of attribute max_nesting.



62
63
64
# File 'lib/grizzled/grinc.rb', line 62

def max_nesting
  @max_nesting
end

#outputObject (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_sObject



70
71
72
# File 'lib/grizzled/grinc.rb', line 70

def to_s
  inspect
end