Class: Arugula::StarPart
- Includes:
- MatchNTimes
- Defined in:
- lib/arugula/parts.rb
Instance Attribute Summary
Attributes included from Wrapping
Instance Method Summary collapse
-
#initialize(*args) ⇒ StarPart
constructor
A new instance of StarPart.
- #to_s ⇒ Object
Methods included from MatchNTimes
Methods inherited from Part
Constructor Details
#initialize(*args) ⇒ StarPart
Returns a new instance of StarPart.
235 236 237 |
# File 'lib/arugula/parts.rb', line 235 def initialize(*args) super(*args, times: 0..Float::INFINITY) end |
Instance Method Details
#to_s ⇒ Object
239 240 241 |
# File 'lib/arugula/parts.rb', line 239 def to_s "#{wrapped}*" end |