Class: Prompt::SimpleMatcher
- Defined in:
- lib/prompt/simple_matcher.rb
Constant Summary
Constants inherited from Matcher
Instance Attribute Summary
Attributes inherited from Matcher
Instance Method Summary collapse
Methods inherited from Matcher
Constructor Details
This class inherits a constructor from Prompt::Matcher
Instance Method Details
#matches(s) ⇒ Object
8 9 10 |
# File 'lib/prompt/simple_matcher.rb', line 8 def matches s s end |
#regex ⇒ Object
4 5 6 |
# File 'lib/prompt/simple_matcher.rb', line 4 def regex "(?<#{parameter.name}>[^#{Prompt::Command::SEP}]*)" end |