Sha256: 92685f40ae00fc6a73c88ae2a9c26a2c96612369d89dcf7017dc11627dba4d94

Contents?: true

Size: 211 Bytes

Versions: 26

Compression:

Stored size: 211 Bytes

Contents

module AngularSprinkles
  class ObjectKeyWrapper
    def initialize(*args)
      *@args, @json_wrapper = args
    end

    def to_json
      @json_wrapper.call(*@args)
    end
    alias :to_s :to_json
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
angular_sprinkles-0.1.0 lib/angular_sprinkles/object_key_wrapper.rb
angular_sprinkles-0.0.9 lib/angular_sprinkles/object_key_wrapper.rb
angular_sprinkles-0.0.8 lib/angular_sprinkles/object_key_wrapper.rb
angular_sprinkles-0.0.7 lib/angular_sprinkles/object_key_wrapper.rb
angular_sprinkles-0.0.6 lib/angular_sprinkles/object_key_wrapper.rb
angular_sprinkles-0.0.5 lib/angular_sprinkles/object_key_wrapper.rb