module Neoon::Node::ClassMethods

Attributes

neo_model_config[R]

Public Instance Methods

neoon(opts = {}) { |neo_model_config| ... } click to toggle source
# File lib/neoon/node.rb, line 11
def neoon(opts = {})
  yield(neo_model_config) if block_given?

  opts.each do |key, value|
    raise "No such option #{key} for #{self.name} model" unless neo_model_config.respond_to?("#{key}=")
    neo_model_config.send("#{key}=", value)
  end
end