Skip to content

Commit

Permalink
minor rdoc stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasronge committed Mar 20, 2010
1 parent 694c797 commit b8ca308
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/neo4j/neo.rb
Expand Up @@ -66,8 +66,8 @@ class << self
# neo_instance:: optional, an instance of org.neo4j.graphdb.GraphDatabaseService
#
# === Examples
# Neo4j::Config[:storage_path] = '/var/neo4j-db'
# Neo4j.start
# Neo4j::Config[:storage_path] = '/var/neo4j-db'
# Neo4j.start
#
# === Returns
# nil
Expand Down Expand Up @@ -137,11 +137,12 @@ def create_rel(type, from_node, to_node, props = {}) # :nodoc:
# Return a Neo4j node.
#
# ==== Parameters
# node_id<String, to_i>:: the unique neo id for one node
# raw<true|false(default)> :: if the raw Java node object should be returned or the Ruby wrapped node.
# node_id:: the unique neo id for one node, should respond to 'to_i'
# raw:: if the raw Java node object should be returned or the Ruby wrapped node, default false.
#
# ==== Returns
# The node object or nil if not found
#
def load_node(node_id, raw = false)
neo_node = @neo.getNodeById(node_id.to_i)
if (raw)
Expand Down

0 comments on commit b8ca308

Please sign in to comment.