Class: Gomasio::Board::Offset

Inherits:
Struct
  • Object
show all
Defined in:
lib/gomasio/board.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#downObject

Returns the value of attribute down

Returns:

  • (Object)

    the current value of down



14
15
16
# File 'lib/gomasio/board.rb', line 14

def down
  @down
end

#rightObject

Returns the value of attribute right

Returns:

  • (Object)

    the current value of right



14
15
16
# File 'lib/gomasio/board.rb', line 14

def right
  @right
end

Instance Method Details

#reverseObject



15
16
17
# File 'lib/gomasio/board.rb', line 15

def reverse
  Offset.new(-down, -right)
end