Class: ParseArgs::Receiver

Inherits:
Hash
  • Object
show all
Includes:
Util
Defined in:
lib/parseargs.rb,
lib/parseargs-0.3.0.rb

Overview

class Parser

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Util

append_features

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(m, *a, &b) ⇒ Object



383
384
385
386
387
388
# File 'lib/parseargs.rb', line 383

def method_missing(m, *a, &b)
#--{{{
  return(get_kw(m)) if has_kw? m
  super
#--}}}
end

Instance Attribute Details

#argumentsObject Also known as: args

Returns the value of attribute arguments.



379
380
381
# File 'lib/parseargs.rb', line 379

def arguments
  @arguments
end

#keywordsObject Also known as: kws

Returns the value of attribute keywords.



381
382
383
# File 'lib/parseargs.rb', line 381

def keywords
  @keywords
end