Class: Origami::Graphics::DashPattern
- Inherits:
-
Object
- Object
- Origami::Graphics::DashPattern
- Defined in:
- lib/origami/graphics/path.rb
Instance Attribute Summary collapse
-
#array ⇒ Object
Returns the value of attribute array.
-
#phase ⇒ Object
Returns the value of attribute phase.
Instance Method Summary collapse
-
#eql?(dash) ⇒ Boolean
:nodoc.
-
#hash ⇒ Object
:nodoc:.
-
#initialize(array, phase = 0) ⇒ DashPattern
constructor
A new instance of DashPattern.
Constructor Details
#initialize(array, phase = 0) ⇒ DashPattern
Returns a new instance of DashPattern.
40 41 42 43 |
# File 'lib/origami/graphics/path.rb', line 40 def initialize(array, phase = 0) @array = array @phase = phase end |
Instance Attribute Details
#array ⇒ Object
Returns the value of attribute array.
38 39 40 |
# File 'lib/origami/graphics/path.rb', line 38 def array @array end |
#phase ⇒ Object
Returns the value of attribute phase.
38 39 40 |
# File 'lib/origami/graphics/path.rb', line 38 def phase @phase end |
Instance Method Details
#eql?(dash) ⇒ Boolean
:nodoc
45 46 47 |
# File 'lib/origami/graphics/path.rb', line 45 def eql?(dash) #:nodoc dash.array == @array and dash.phase == @phase end |
#hash ⇒ Object
:nodoc:
49 50 51 |
# File 'lib/origami/graphics/path.rb', line 49 def hash #:nodoc: [ @array, @phase ].hash end |