Class: Sashite::Cpn::Shape
- Inherits:
-
Object
- Object
- Sashite::Cpn::Shape
- Defined in:
- lib/sashite/cpn/shape.rb
Overview
Shape class.
Instance Attribute Summary collapse
-
#indexes ⇒ Array
readonly
The list of indexes.
Instance Method Summary collapse
-
#initialize(*indexes) ⇒ Shape
constructor
A new instance of Shape.
-
#to_s ⇒ String
A string representation.
Constructor Details
#initialize(*indexes) ⇒ Shape
Returns a new instance of Shape.
8 9 10 |
# File 'lib/sashite/cpn/shape.rb', line 8 def initialize(*indexes) @indexes = indexes end |
Instance Attribute Details
#indexes ⇒ Array (readonly)
Returns The list of indexes.
15 16 17 |
# File 'lib/sashite/cpn/shape.rb', line 15 def indexes @indexes end |
Instance Method Details
#to_s ⇒ String
Returns A string representation.
18 19 20 |
# File 'lib/sashite/cpn/shape.rb', line 18 def to_s indexes.join(',') end |