Class: Dens::CLI
- Inherits:
-
Object
- Object
- Dens::CLI
- Defined in:
- lib/dens/cli.rb
Instance Attribute Summary collapse
-
#destination ⇒ Object
readonly
Returns the value of attribute destination.
-
#mover ⇒ Object
readonly
Returns the value of attribute mover.
-
#origin ⇒ Object
readonly
Returns the value of attribute origin.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ CLI
constructor
A new instance of CLI.
- #start ⇒ Object
Constructor Details
Instance Attribute Details
#destination ⇒ Object (readonly)
Returns the value of attribute destination.
2 3 4 |
# File 'lib/dens/cli.rb', line 2 def destination @destination end |
#mover ⇒ Object (readonly)
Returns the value of attribute mover.
2 3 4 |
# File 'lib/dens/cli.rb', line 2 def mover @mover end |
#origin ⇒ Object (readonly)
Returns the value of attribute origin.
2 3 4 |
# File 'lib/dens/cli.rb', line 2 def origin @origin end |
Class Method Details
Instance Method Details
#start ⇒ Object
10 11 12 |
# File 'lib/dens/cli.rb', line 10 def start mover.move(origin, destination) end |