Module: Gearbox::Resource
- Defined in:
- lib/gearbox/mixins/resource.rb
Overview
The main mixin for any model.
TODO: include an example file.
Class Method Summary collapse
-
.included(base) ⇒ Object
= Behavior = ============.
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
Behavior =
11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/gearbox/mixins/resource.rb', line 11 def self.included(base) # Rethinking this one, they will be much more robust soon. # This is more for knowledge base discovery or throw-away models # So there's a new approach on the horizon of my imagination. # base.send :include, AdHocProperties base.send :include, ActiveModelImplementation base.send :include, SubjectMethods base.send :include, SemanticAccessors base.send :include, QueryableImplementation base.send :include, RDF::Mutable end |
Instance Method Details
#inspect ⇒ Object
24 25 26 |
# File 'lib/gearbox/mixins/resource.rb', line 24 def inspect "#{self.class.name} #{self.attributes.inspect}" end |