Module: Aspen::Helpers
- Defined in:
- lib/aspen/helpers.rb
Instance Method Summary collapse
Instance Method Details
#edge(name) ⇒ Object
13 14 15 |
# File 'lib/aspen/helpers.rb', line 13 def edge(name) "[#{name}]" end |
#node(*args) ⇒ Object
3 4 5 6 7 8 9 10 11 |
# File 'lib/aspen/helpers.rb', line 3 def node(*args) if args.first.is_a? Hash h = args.first "(#{h.keys.first}: #{h.values.first})" else "not hash" "(#{args.first})" end end |