Class: TreeRepl::Pwd
Instance Attribute Summary
Attributes inherited from Cmd
Instance Method Summary collapse
- #exec(args) ⇒ Object
- #help ⇒ Object
-
#initialize(repl) ⇒ Pwd
constructor
A new instance of Pwd.
Constructor Details
#initialize(repl) ⇒ Pwd
Returns a new instance of Pwd.
69 70 71 |
# File 'lib/treerepl/cmds.rb', line 69 def initialize(repl) super(repl,'pwd') end |
Instance Method Details
#exec(args) ⇒ Object
72 73 74 |
# File 'lib/treerepl/cmds.rb', line 72 def exec(args) puts cwd end |
#help ⇒ Object
75 76 77 |
# File 'lib/treerepl/cmds.rb', line 75 def help 'Print the current working directory' end |