Class: CCEngine::Location::Position

Inherits:
Object
  • Object
show all
Defined in:
lib/cc_engine/location/position.rb

Instance Method Summary collapse

Instance Method Details

#to_hashObject



12
13
14
15
16
17
18
19
20
# File 'lib/cc_engine/location/position.rb', line 12

def to_hash
  {
    path: path,
    positions: {
      begin: start_position.to_hash,
      end: end_position.to_hash
    }
  }
end