Sha256: 0842ce14bb14a0a988bde66ee654f9860bd122bab98d9f7623b9ead201156703

Contents?: true

Size: 434 Bytes

Versions: 15

Compression:

Stored size: 434 Bytes

Contents

# frozen_string_literal: true

require 'sinclair'

module Azeroth
  # @api private
  # @author Darthjee
  #
  # Decorator that calls #as_json on object
  class DummyDecorator
    delegate :as_json, to: :@object
    # @method as_json
    # @api public
    #
    # Returns object.as_json
    #
    # @return [Hash]

    # @param object [Object] object to be decorated
    def initialize(object)
      @object = object
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
azeroth-1.0.0 lib/azeroth/dummy_decorator.rb
azeroth-0.10.1 lib/azeroth/dummy_decorator.rb
azeroth-0.10.0 lib/azeroth/dummy_decorator.rb
azeroth-0.9.0 lib/azeroth/dummy_decorator.rb
azeroth-0.8.2 lib/azeroth/dummy_decorator.rb
azeroth-0.8.1 lib/azeroth/dummy_decorator.rb
azeroth-0.8.0 lib/azeroth/dummy_decorator.rb
azeroth-0.7.4 lib/azeroth/dummy_decorator.rb
azeroth-0.7.3 lib/azeroth/dummy_decorator.rb
azeroth-0.7.2 lib/azeroth/dummy_decorator.rb
azeroth-0.7.1 lib/azeroth/dummy_decorator.rb
azeroth-0.7.0 lib/azeroth/dummy_decorator.rb
azeroth-0.6.5 lib/azeroth/dummy_decorator.rb
azeroth-0.6.4 lib/azeroth/dummy_decorator.rb
azeroth-0.6.3 lib/azeroth/dummy_decorator.rb