Method: Graph::Edge#method_missing
- Defined in:
- lib/graph.rb
#method_missing(method, *args, &block) ⇒ Object
118 119 120 121 122 123 |
# File 'lib/graph.rb', line 118 def method_missing(method, *args, &block) return @attrs[method.to_sym] if @attrs.has_key? method.to_sym return @attrs[method.to_s] if @attrs.has_key? method.to_s @attrs.send(method, *args, &block) end |