Class: Arugula::StarPart

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) ⇒ 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_sObject


239
240
241
# File 'lib/arugula/parts.rb', line 239

def to_s
  "#{wrapped}*"
end