Class: Prompt::Matcher

Inherits:
Object
  • Object
show all
Defined in:
lib/prompt/matcher.rb

Direct Known Subclasses

MultiMatcher, SimpleMatcher

Constant Summary collapse

SEP =
Prompt::Command::SEP

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(param) ⇒ Matcher

Returns a new instance of Matcher.



8
9
10
# File 'lib/prompt/matcher.rb', line 8

def initialize param
  @parameter = param
end

Instance Attribute Details

#parameterObject (readonly)

Returns the value of attribute parameter.



6
7
8
# File 'lib/prompt/matcher.rb', line 6

def parameter
  @parameter
end