class RFlare::Edge

Attributes

from[R]
to[R]

Public Class Methods

new(from, to, vert, horiz) click to toggle source
# File lib/rflare.rb, line 101
def initialize from, to, vert, horiz
  @from, @to = from, to
  @vert = Spec.new(vert || '+0')
  @horiz = Spec.new(horiz || '+0')
end

Public Instance Methods

get_square(row, col, row_bounds, col_bounds) click to toggle source
# File lib/rflare.rb, line 109
def get_square row, col, row_bounds, col_bounds
   Square.new(
    @vert.range(row, row_bounds),
    @horiz.range(col, col_bounds))
end