diff --git a/lib/neography.rb b/lib/neography.rb index 7661e95..9bcb1f6 100644 --- a/lib/neography.rb +++ b/lib/neography.rb @@ -13,8 +13,6 @@ def find_and_require_user_defined_code end end -DIRECTIONS = ["incoming", "in", "outgoing", "out", "all", "both"] - require 'cgi' require 'httparty' require 'json' diff --git a/lib/neography/node_relationship.rb b/lib/neography/node_relationship.rb index 955f78a..71fbc3a 100644 --- a/lib/neography/node_relationship.rb +++ b/lib/neography/node_relationship.rb @@ -1,6 +1,8 @@ module Neography module NodeRelationship + DIRECTIONS = ["incoming", "in", "outgoing", "out", "all", "both"] + def outgoing(types=nil) NodeTraverser.new(self).outgoing(types) end @@ -32,4 +34,4 @@ def rel?(dir=nil, type=nil) end end -end \ No newline at end of file +end