#82 ✓resolved
jho406 (at gmail)

NodeMixin initialize should accept block like doc

Reported by jho406 (at gmail) | October 6th, 2009 @ 04:41 AM | in 0.3.3

I wasn't able to set properties using a block when creating a new node like the docs:

  class MyNode
     include Neo4j::NodeMixin
     property :foo, :bar

  node = MyNode.new { |n|
     n.foo = 123
     n.bar = 3.14

  ####the following would return nil
  puts node.foo

Could be a missing yield/call somewhere.


Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Neo4j.rb is a graph database framework for JRuby.

It provides:

* Mapping of ruby objects to nodes in networks rather than in tables.
* Storage of ruby object to a file system.
* Fast traversal of relationships between nodes in a hugh node space.
* Transaction with rollbacks support.
* Indexing and quering of ruby objects.
* Integration with Rails

People watching this ticket

Referenced by