Class: ToSource::Command::Shift

Inherits:
ToSource::Command show all
Defined in:
lib/to_source/command.rb

Constant Summary

Constants inherited from ToSource::Command

NULL

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#widthObject (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