lib/rley/parser/parse_entry.rb in rley-0.6.00 vs lib/rley/parser/parse_entry.rb in rley-0.6.01
- old
+ new
@@ -29,12 +29,12 @@
# Returns a string containing a human-readable representation of the
# production.
# @return [String]
def inspect()
- result = selfie()
- result << " @antecedents=["
+ result = selfie
+ result << ' @antecedents=['
antecedents.each do |antec|
result << antec.selfie
end
result << ']>'
@@ -145,10 +145,10 @@
protected
# Returns a human-readable and partial representation of itself.
# @return [String]
def selfie()
- result = "#<#{self.class.name}:#{self.object_id}"
+ result = "#<#{self.class.name}:#{object_id}"
result << " @vertex=<#{vertex.class.name}:#{vertex.object_id}"
result << " label=#{vertex.label}>"
result << " @origin=#{origin}"
return result