Method: Wordpress::OpenStruct#respond_to_missing?
- Defined in:
- lib/wordpress/ostruct.rb
#respond_to_missing?(method_name, include_private = false) ⇒ Boolean
16 17 18 19 20 21 22 23 |
# File 'lib/wordpress/ostruct.rb', line 16 def respond_to_missing?(method_name, include_private = false) key = method_name.to_s if @hash.include?(key) define_accessor(key) else super end end |