Class: Origami::Graphics::DashPattern

Inherits:
Object
  • Object
show all
Defined in:
lib/origami/graphics/path.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(array, phase = 0) ⇒ DashPattern

Returns a new instance of DashPattern.



38
39
40
41
# File 'lib/origami/graphics/path.rb', line 38

def initialize(array, phase = 0)
  @array = array
  @phase = phase
end

Instance Attribute Details

#arrayObject

Returns the value of attribute array.



36
37
38
# File 'lib/origami/graphics/path.rb', line 36

def array
  @array
end

#phaseObject

Returns the value of attribute phase.



36
37
38
# File 'lib/origami/graphics/path.rb', line 36

def phase
  @phase
end

Instance Method Details

#eql?(other) ⇒ Boolean

:nodoc

Returns:



43
44
45
# File 'lib/origami/graphics/path.rb', line 43

def eql?(other) # :nodoc
  other.array == @array and other.phase == @phase
end

#hashObject

:nodoc:



47
48
49
# File 'lib/origami/graphics/path.rb', line 47

def hash # :nodoc:
  [@array, @phase].hash
end