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.3.3 lib/angular_sprinkles/object_key_wrapper.rb
angular_sprinkles-0.3.2 lib/angular_sprinkles/object_key_wrapper.rb
angular_sprinkles-0.3.1 lib/angular_sprinkles/object_key_wrapper.rb
angular_sprinkles-0.3.0 lib/angular_sprinkles/object_key_wrapper.rb
angular_sprinkles-0.2.14 lib/angular_sprinkles/object_key_wrapper.rb
angular_sprinkles-0.2.13 lib/angular_sprinkles/object_key_wrapper.rb
angular_sprinkles-0.2.12 lib/angular_sprinkles/object_key_wrapper.rb
angular_sprinkles-0.2.11 lib/angular_sprinkles/object_key_wrapper.rb
angular_sprinkles-0.2.10 lib/angular_sprinkles/object_key_wrapper.rb
angular_sprinkles-0.2.9 lib/angular_sprinkles/object_key_wrapper.rb
angular_sprinkles-0.2.8 lib/angular_sprinkles/object_key_wrapper.rb
angular_sprinkles-0.2.7 lib/angular_sprinkles/object_key_wrapper.rb
angular_sprinkles-0.2.6 lib/angular_sprinkles/object_key_wrapper.rb
angular_sprinkles-0.2.5 lib/angular_sprinkles/object_key_wrapper.rb
angular_sprinkles-0.2.4 lib/angular_sprinkles/object_key_wrapper.rb
angular_sprinkles-0.2.3 lib/angular_sprinkles/object_key_wrapper.rb
angular_sprinkles-0.2.2 lib/angular_sprinkles/object_key_wrapper.rb
angular_sprinkles-0.2.1 lib/angular_sprinkles/object_key_wrapper.rb
angular_sprinkles-0.2.0 lib/angular_sprinkles/object_key_wrapper.rb
angular_sprinkles-0.1.1 lib/angular_sprinkles/object_key_wrapper.rb