lib/vedeu/geometries/position.rb in vedeu-0.8.3 vs lib/vedeu/geometries/position.rb in vedeu-0.8.4
- old
+ new
@@ -96,9 +96,14 @@
# @return [Array<Fixnum>]
def to_a
[y, x]
end
+ # @return [String]
+ def to_ast
+ ":y#{y}_x#{x}"
+ end
+
# Return the position as a Hash.
#
# @return [Hash<Symbol => Fixnum|NilClass>]
def to_h
{