Class: CSVPlusPlus::Expand
- Inherits:
-
Struct
- Object
- Struct
- CSVPlusPlus::Expand
- Defined in:
- lib/csv_plus_plus/expand.rb
Instance Attribute Summary collapse
-
#repetitions ⇒ Object
Returns the value of attribute repetitions.
Instance Method Summary collapse
-
#infinite? ⇒ Boolean
Does this infinitely expand?.
-
#to_s ⇒ Object
to_s.
Instance Attribute Details
#repetitions ⇒ Object
Returns the value of attribute repetitions
4 5 6 |
# File 'lib/csv_plus_plus/expand.rb', line 4 def repetitions @repetitions end |
Instance Method Details
#infinite? ⇒ Boolean
Does this infinitely expand?
7 8 9 |
# File 'lib/csv_plus_plus/expand.rb', line 7 def infinite? repetitions.nil? end |
#to_s ⇒ Object
to_s
12 13 14 |
# File 'lib/csv_plus_plus/expand.rb', line 12 def to_s "Expand #{repetitions || 'infinity'}" end |