lib/hari.rb in hari-0.0.3 vs lib/hari.rb in hari-0.0.4

- old
+ new

@@ -10,16 +10,19 @@ require 'ostruct' require 'hari/version' require 'hari/configuration' require 'hari/errors' -require 'hari/entity' -require 'hari/node' -require 'hari/relation' module Hari extend self + + autoload :Entity, 'hari/entity' + autoload :Keys, 'hari/keys' + autoload :Node, 'hari/node' + autoload :Relation, 'hari/relation' + extend Configuration extend Hari::Node::Queries def node(arg) type, id = node_type(arg), node_id(arg) @@ -64,9 +67,13 @@ end end def relation!(type, from, target) Relation.create type, from, target + end + + def remove_relation!(type, from, target) + relation!(type, from, target).delete end end def Hari(arg)