An attribute… that's compound. So much for self-documenting code. :(
<<(thing) click to toggle source
“Paint” a thingy with an attribute. Applies the attribute to the thingy. In this case, does it recursively.
# File lib/graph.rb, line 516 def << thing attr.each do |subattr| subattr << thing # allows for recursive compound attributes end self end
push(attrib) click to toggle source
Push an attribute into the list o' attributes.
# File lib/graph.rb, line 508 def push attrib attr.push attrib end