Sha256: 70eb6647d33d7a95a4e5b92f4d54d5100faa2905a8f978b72f20d9f7654337d8
Contents?: true
Size: 440 Bytes
Versions: 9
Compression:
Stored size: 440 Bytes
Contents
module SafetyPin class NodeBlueprint attr_accessor :path, :primary_type, :properties def initialize(opts) raise NodeBlueprintError.new("No path specified") unless opts.has_key?(:path) @path = opts[:path] @primary_type = opts[:primary_type] || "nt:unstructured" @properties = opts[:properties] || {} end def node_blueprint? true end end class NodeBlueprintError < Exception; end end
Version data entries
9 entries across 9 versions & 2 rubygems