Module: EasyJSONMatcher::ContentWrapper
- Included in:
- Node
- Defined in:
- lib/easy_json_matcher/content_wrapper.rb
Instance Method Summary
collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args, &block) ⇒ Object
8
9
10
|
# File 'lib/easy_json_matcher/content_wrapper.rb', line 8
def method_missing(method, *args, &block)
content.send(method, *args, &block)
end
|
Instance Method Details
#[](key) ⇒ Object
4
5
6
|
# File 'lib/easy_json_matcher/content_wrapper.rb', line 4
def [](key)
content[key.to_s]
end
|
#keys ⇒ Object
12
13
14
|
# File 'lib/easy_json_matcher/content_wrapper.rb', line 12
def keys
content.keys.map(&:to_sym)
end
|