Class: ToSource::Command::Shift
- Inherits:
-
ToSource::Command
- Object
- ToSource::Command
- ToSource::Command::Shift
- Defined in:
- lib/to_source/command.rb
Constant Summary
Constants inherited from ToSource::Command
Instance Attribute Summary collapse
-
#width ⇒ Object
readonly
Returns the value of attribute width.
Instance Method Summary collapse
Instance Attribute Details
#width ⇒ Object (readonly)
Returns the value of attribute width.
27 28 29 |
# File 'lib/to_source/command.rb', line 27 def width @width end |
Instance Method Details
#run(state) ⇒ Object
29 30 31 |
# File 'lib/to_source/command.rb', line 29 def run(state) state.shift(width) end |