class Blacksheep::ActionDecorator

@class Blacksheep::ActionDecorator

Public Instance Methods

__class__()

Access to the decorators class - since original class is overwritten to return the model class.

@return [Class] The class of the deocrator. @see [#class]

Alias for: class
class() click to toggle source
# File lib/blacksheep/action_decorator.rb, line 13
def class
  __getobj__.class
end
Also aliased as: __class__
decorators_chain() click to toggle source

Just for curiosity - get the decorators chain

@return [type] [description]

# File lib/blacksheep/action_decorator.rb, line 21
def decorators_chain
  decorated = __getobj__
  chain = decorated.kind_of?(Blacksheep::ActionDecorator) ? decorated.decorators_chain : [ decorated.class ]

  chain.unshift(self.__class__)
end