Module: Origami::Graphics::Path::Segment

Included in:
Line
Defined in:
lib/origami/graphics/path.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#fromObject

Returns the value of attribute from.



63
64
65
# File 'lib/origami/graphics/path.rb', line 63

def from
  @from
end

#toObject

Returns the value of attribute to.



63
64
65
# File 'lib/origami/graphics/path.rb', line 63

def to
  @to
end

Instance Method Details

#initialize(from, to) ⇒ Object



65
66
67
# File 'lib/origami/graphics/path.rb', line 65

def initialize(from, to)
  @from, @to = from, to
end