Method: Dry::View::Part#method_missing
- Defined in:
- lib/dry/view/part.rb
#method_missing(name, *args, &block) ⇒ Object (private)
Handles missing methods. If the ‘_value` responds to the method, then the method will be sent to the value.
198 199 200 201 202 203 204 205 206 |
# File 'lib/dry/view/part.rb', line 198 def method_missing(name, *args, &block) if _value.respond_to?(name) _value.public_send(name, *args, &block) elsif CONVENIENCE_METHODS.include?(name) __send__(:"_#{name}", *args, &block) else super end end |