Class: ParseArgs::Receiver

Inherits:
Hash
  • Object
show all
Includes:
Util
Defined in:
lib/parseargs.rb,
lib/parseargs-0.2.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



391
392
393
394
395
396
# File 'lib/parseargs.rb', line 391

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.



387
388
389
# File 'lib/parseargs.rb', line 387

def arguments
  @arguments
end

#keywordsObject Also known as: kws

Returns the value of attribute keywords.



389
390
391
# File 'lib/parseargs.rb', line 389

def keywords
  @keywords
end