Class: Remarkable::ActionController::Matchers::RouteMatcher

Inherits:
Base
  • Object
show all
Defined in:
lib/remarkable_rails/action_controller/matchers/route_matcher.rb

Overview

Do not inherit from ActionController::Base since it don’t need all macro stubs behavior.

Instance Method Summary collapse

Instance Method Details

#from(value) ⇒ Object



35
36
37
38
# File 'lib/remarkable_rails/action_controller/matchers/route_matcher.rb', line 35

def from(value)
  @path = value
  self
end

#to(value) ⇒ Object



30
31
32
33
# File 'lib/remarkable_rails/action_controller/matchers/route_matcher.rb', line 30

def to(value)
  @options.merge!(value)
  self
end