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 ⇒ ::String
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?
9 10 11 |
# File 'lib/csv_plus_plus/expand.rb', line 9 def infinite? repetitions.nil? end |
#to_s ⇒ ::String
14 15 16 |
# File 'lib/csv_plus_plus/expand.rb', line 14 def to_s "Expand #{repetitions || 'infinity'}" end |