Class: TreeRepl::Cmd
- Inherits:
-
Object
- Object
- TreeRepl::Cmd
- Defined in:
- lib/treerepl/cmds.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#repl ⇒ Object
readonly
Returns the value of attribute repl.
Instance Method Summary collapse
- #exec(args) ⇒ Object
- #help ⇒ Object
-
#initialize(repl, name) ⇒ Cmd
constructor
A new instance of Cmd.
Constructor Details
#initialize(repl, name) ⇒ Cmd
Returns a new instance of Cmd.
5 6 7 8 |
# File 'lib/treerepl/cmds.rb', line 5 def initialize(repl,name) @repl = repl @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/treerepl/cmds.rb', line 4 def name @name end |
#repl ⇒ Object (readonly)
Returns the value of attribute repl.
4 5 6 |
# File 'lib/treerepl/cmds.rb', line 4 def repl @repl end |
Instance Method Details
#exec(args) ⇒ Object
12 13 14 |
# File 'lib/treerepl/cmds.rb', line 12 def exec(args) raise 'Implement exec(string[])' end |
#help ⇒ Object
9 10 11 |
# File 'lib/treerepl/cmds.rb', line 9 def help raise 'Implement help()' end |