Class: ActiveTriples::Schema
- Inherits:
-
Object
- Object
- ActiveTriples::Schema
- Defined in:
- lib/active_triples/schema.rb
Overview
Super class which provides a simple property DSL for defining property -> predicate mappings.
Class Method Summary collapse
Class Method Details
.properties ⇒ Object
15 16 17 |
# File 'lib/active_triples/schema.rb', line 15 def properties @properties ||= [] end |
.property(property, options) ⇒ Object
11 12 13 |
# File 'lib/active_triples/schema.rb', line 11 def property(property, ) properties << Property.new(.merge(:name => property)) end |