Class: OptparseLite::OptParser::UnparsedParamters

Inherits:
Hash
  • Object
show all
Includes:
HelpHelper, OptparseLite::OptHelper, Error
Defined in:
lib/optparse-lite.rb

Instance Attribute Summary

Attributes included from Error

#error_type

Instance Method Summary collapse

Methods included from Error

[], #error_init, new

Methods included from OptparseLite::OptHelper

#dashes

Methods included from HelpHelper

#cmd, #hdr, #help_requested?, #looks_like_header?, #prefix, #txt

Constructor Details

#initializeUnparsedParamters

Returns a new instance of UnparsedParamters.



841
842
843
# File 'lib/optparse-lite.rb', line 841

def initialize
  @error_type = :unparsed_parameters
end

Instance Method Details

#to_sObject



844
845
846
847
# File 'lib/optparse-lite.rb', line 844

def to_s
  "i don't recognize "<<
    Np.new(:this, 'parameter'){|| keys.map{|x| code(dashes(x)) }}
end