Class: AngularSprinkles::ObjectKeyWrapper
- Inherits:
-
Object
- Object
- AngularSprinkles::ObjectKeyWrapper
- Defined in:
- lib/angular_sprinkles/object_key_wrapper.rb
Instance Method Summary collapse
-
#initialize(*args) ⇒ ObjectKeyWrapper
constructor
A new instance of ObjectKeyWrapper.
- #to_json ⇒ Object (also: #to_s)
Constructor Details
#initialize(*args) ⇒ ObjectKeyWrapper
Returns a new instance of ObjectKeyWrapper.
3 4 5 |
# File 'lib/angular_sprinkles/object_key_wrapper.rb', line 3 def initialize(*args) *@args, @json_wrapper = args end |
Instance Method Details
#to_json ⇒ Object Also known as: to_s
7 8 9 |
# File 'lib/angular_sprinkles/object_key_wrapper.rb', line 7 def to_json @json_wrapper.call(*@args) end |