module Gearbox::Resource
The main mixin for any model.
TODO: include an example file.
Public Class Methods
included(base)
click to toggle source
¶ ↑
Behavior =¶ ↑
¶ ↑
# 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
Public Instance Methods
inspect()
click to toggle source
# File lib/gearbox/mixins/resource.rb, line 24 def inspect "#{self.class.name} #{self.attributes.inspect}" end