Sha256: ec2fde219bdec94a44e80df9d4b44e4e55bb077a762ac793ba7f2c148f04ee0e

Contents?: true

Size: 419 Bytes

Versions: 7

Compression:

Stored size: 419 Bytes

Contents

module Decorum
  module Spec
    module Decorations
      class SecondDecorator < Decorum::Decorator
        share :shared_attribute
        attr_accessor :local_attribute

        def second_decorator_method
          "second"
        end

        alias_method :current_decorator_method, :second_decorator_method

        def respect_previously_defined_methods?
          false
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
decorum-0.5.1 spec/support/decorations/second_decorator.rb
decorum-0.5.0 spec/support/decorations/second_decorator.rb
decorum-0.4.1 spec/support/decorations/second_decorator.rb
decorum-0.4.0 spec/support/decorations/second_decorator.rb
decorum-0.3.0 spec/support/decorations/second_decorator.rb
decorum-0.2.0 spec/support/decorations/second_decorator.rb
decorum-0.0.1 spec/support/decorations/second_decorator.rb