Class: Elasticshell::Commands::Pwd
- Inherits:
-
Elasticshell::Command
- Object
- Elasticshell::Command
- Elasticshell::Commands::Pwd
- Defined in:
- lib/elasticshell/commands/pwd.rb
Instance Attribute Summary
Attributes inherited from Elasticshell::Command
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Elasticshell::Command
Constructor Details
This class inherits a constructor from Elasticshell::Command
Class Method Details
.matches?(input) ⇒ Boolean
5 6 7 |
# File 'lib/elasticshell/commands/pwd.rb', line 5 def self.matches? input input =~ /^pwd/i end |
Instance Method Details
#evaluate! ⇒ Object
9 10 11 |
# File 'lib/elasticshell/commands/pwd.rb', line 9 def evaluate! shell.print shell.scope.path end |