Skip to content

Commit

Permalink
Move global constant into class where it is used.
Browse files Browse the repository at this point in the history
  • Loading branch information
Roel van Dijk committed Sep 24, 2012
1 parent 6536a7e commit 3552879
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 0 additions & 2 deletions lib/neography.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
4 changes: 3 additions & 1 deletion lib/neography/node_relationship.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -32,4 +34,4 @@ def rel?(dir=nil, type=nil)
end

end
end
end

0 comments on commit 3552879

Please sign in to comment.