Class: SimpleArgs

Inherits:
Object
  • Object
show all
Defined in:
lib/simple_args.rb,
lib/simple_args/match.rb

Defined Under Namespace

Classes: Match

Constant Summary collapse

VERSION =
'0.0.2'
ArgsError =
Class.new(StandardError)
AttrRgx =
%r{\A (?: -- (?<key>\w+) = (?<value>\w+) | -- (?<long>\w+) | - (?<short>\w+) | (?<end>--) ) \z}x

Instance Attribute Summary collapse

Instance Attribute Details

#keywordsObject (readonly)

Returns the value of attribute keywords.



9
10
11
# File 'lib/simple_args.rb', line 9

def keywords
  @keywords
end

#positionalsObject (readonly)

Returns the value of attribute positionals.



9
10
11
# File 'lib/simple_args.rb', line 9

def positionals
  @positionals
end