class method
self.new
Ruby on Rails 2.3.18
Since v2.3.18 Last seen in v2.3.18Signature
self.new(key = nil, options = {})
No documentation comment.
Parameters
-
keyopt = nil -
optionsopt = {}
Source
# File actionpack/lib/action_controller/routing/segments.rb, line 312
def initialize(key = nil, options = {})
super(:format, {:optional => true}.merge(options))
end
Defined in actionpack/lib/action_controller/routing/segments.rb line 312
· View on GitHub
· Improve this page
· Find usages on GitHub