Module: EasyRepl::Commands::Matchable

Included in:
Exit, Reload
Defined in:
lib/easy_repl/commands/matchable.rb

Instance Method Summary collapse

Instance Method Details

#matches(input) ⇒ Object



4
5
6
# File 'lib/easy_repl/commands/matchable.rb', line 4

def matches(input)
  input =~ /^#{cmd_txt}/
end