class Consoler::Arguments
@attr_reader [Array<String>] args Raw arguments
Attributes
args[R]
Public Class Methods
new(args)
click to toggle source
# File lib/consoler/arguments.rb, line 12 def initialize(args) @args = args end
Public Instance Methods
match(options)
click to toggle source
Match arguments against options
@see Consoler::Matcher#match
@return [Hash, nil] Matched information, or nil
is returned when there was no match
# File lib/consoler/arguments.rb, line 20 def match(options) matcher = Consoler::Matcher.new self, options matcher.match end