class Representable::Decorator
Attributes
Public Class Methods
Source
# File lib/representable/decorator.rb, line 22 def self.clone Class.new(self) end
This is called from inheritable_attr when inheriting a decorator class to a subclass. Explicitly subclassing the Decorator
makes sure representable_attrs is a clean version.
Source
# File lib/representable/decorator.rb, line 14 def self.default_nested_class #FIXME. SHOULD we move that into NestedBuilder? Representable::Decorator end
Source
# File lib/representable/decorator.rb, line 37 def self.nested_builder ::Declarative::Schema::DSL::NestedBuilder end
Source
# File lib/representable/decorator.rb, line 33 def initialize(represented) @represented = represented end
Source
# File lib/representable/decorator.rb, line 10 def self.prepare(represented) new(represented) end
TODO: when moving all class methods into ClassMethods
, i get a segfault.