Class: Arugula::MatchPart

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Part

all, inherited, type

Constructor Details

#initializeMatchPart

Returns a new instance of MatchPart.



128
129
130
# File 'lib/arugula/parts.rb', line 128

def initialize
  @parts = AndPart.new
end

Instance Attribute Details

#partsObject

Returns the value of attribute parts.



127
128
129
# File 'lib/arugula/parts.rb', line 127

def parts
  @parts
end

Instance Method Details

#to_sObject



132
133
134
# File 'lib/arugula/parts.rb', line 132

def to_s
  "(#{parts.join})"
end