Module: Ellipses::Client::Command::Mixins::SetupPattern
- Included in:
- Ellipses::Client::Commands::Reject, Ellipses::Client::Commands::Select, Ellipses::Client::Commands::Substitute
- Defined in:
- lib/ellipses/client/command.rb
Instance Method Summary collapse
Instance Method Details
#patternize(arg = nil) ⇒ Object
26 27 28 29 30 |
# File 'lib/ellipses/client/command.rb', line 26 def patternize(arg = nil) param.pattern = Regexp.new(arg || argv.first) rescue RegexpError => e error(e.) end |
#setup ⇒ Object
32 33 34 |
# File 'lib/ellipses/client/command.rb', line 32 def setup patternize end |