Sha256: ed3691d9991bc343b1eb0be5bed03bf5f25c346dbb731209be5af03c52095719

Contents?: true

Size: 448 Bytes

Versions: 4

Compression:

Stored size: 448 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
    # @public
    # @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

4 entries across 4 versions & 1 rubygems

Version Path
azeroth-0.6.2 lib/azeroth/dummy_decorator.rb
azeroth-0.6.1 lib/azeroth/dummy_decorator.rb
azeroth-0.6.0 lib/azeroth/dummy_decorator.rb
azeroth-0.5.0 lib/azeroth/dummy_decorator.rb