Class: SimpleArgs
- Inherits:
-
Object
- Object
- SimpleArgs
- 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
-
#keywords ⇒ Object
readonly
Returns the value of attribute keywords.
-
#positionals ⇒ Object
readonly
Returns the value of attribute positionals.
Instance Attribute Details
#keywords ⇒ Object (readonly)
Returns the value of attribute keywords.
9 10 11 |
# File 'lib/simple_args.rb', line 9 def keywords @keywords end |
#positionals ⇒ Object (readonly)
Returns the value of attribute positionals.
9 10 11 |
# File 'lib/simple_args.rb', line 9 def positionals @positionals end |