module Languages::Generic::Position::ClassMethods
Public Instance Methods
[](x,y)
click to toggle source
# File lib/languages/generic/position.rb, line 9 def [](x,y) o = new o.x,o.y = x,y o end
from_array(ary)
click to toggle source
# File lib/languages/generic/position.rb, line 15 def from_array(ary) x, y = ary.pop(2) x = Languages::Generic::Dots.new(x) if x.is_a? Integer y = Languages::Generic::Dots.new(y) if y.is_a? Integer o = new o.x,o.y = x,y o end