Module: RSpec::Rails::HyperShortcut::AdditionalMethods
- Defined in:
- lib/rspec/rails/extra/routing/hyper_shortcut/additional_methods.rb
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method_name, *args) ⇒ Object (private)
12 13 14 15 16 17 18 |
# File 'lib/rspec/rails/extra/routing/hyper_shortcut/additional_methods.rb', line 12 def method_missing(method_name,*args) if self.new.methods.include? method_name MatcherPlaceholder.new(method_name,args) else super(method_name,*args) end end |