Class: Arugula::PlusPart

Inherits:
Part
  • Object
show all
Includes:
MatchNTimes
Defined in:
lib/arugula/parts.rb

Instance Attribute Summary

Attributes included from Wrapping

#wrapped

Instance Method Summary collapse

Methods included from MatchNTimes

#match

Methods inherited from Part

all, inherited, type

Constructor Details

#initialize(*args) ⇒ PlusPart

Returns a new instance of PlusPart.


246
247
248
# File 'lib/arugula/parts.rb', line 246

def initialize(*args)
  super(*args, times: 1..Float::INFINITY)
end

Instance Method Details

#to_sObject


250
251
252
# File 'lib/arugula/parts.rb', line 250

def to_s
  "#{wrapped}+"
end