lib/grumlin/sugar.rb in grumlin-0.15.6 vs lib/grumlin/sugar.rb in grumlin-0.16.0

- old
+ new

@@ -4,14 +4,14 @@ module Sugar def self.included(base) base.include(Grumlin::Expressions) end - def __ - Grumlin::Expressions::U + def __(shortcuts = {}) + Grumlin::TraversalStart.new(shortcuts) # TODO: allow only regular and start steps end - def g - Grumlin::Traversal.new + def g(shortcuts = {}) + Grumlin::TraversalStart.new(shortcuts) end end end