Class: ActionController::Routing::DividerSegment
- Inherits:
-
StaticSegment
- Object
- Segment
- StaticSegment
- ActionController::Routing::DividerSegment
- Defined in:
- lib/action_controller/routing/segments.rb
Overview
:nodoc:
Constant Summary
Constants inherited from Segment
Segment::RESERVED_PCHAR, Segment::SAFE_PCHAR, Segment::UNSAFE_PCHAR
Instance Attribute Summary
Attributes inherited from StaticSegment
Attributes inherited from Segment
Instance Method Summary collapse
-
#initialize(value = nil, options = {}) ⇒ DividerSegment
constructor
A new instance of DividerSegment.
- #optionality_implied? ⇒ Boolean
Methods inherited from StaticSegment
#build_pattern, #interpolation_chunk, #number_of_captures, #regexp_chunk, #to_s
Methods inherited from Segment
#all_optionals_available_condition, #continue_string_structure, #extraction_code, #interpolation_chunk, #interpolation_statement, #match_extraction, #number_of_captures, #string_structure
Constructor Details
#initialize(value = nil, options = {}) ⇒ DividerSegment
Returns a new instance of DividerSegment.
116 117 118 |
# File 'lib/action_controller/routing/segments.rb', line 116 def initialize(value = nil, = {}) super(value, {:raw => true, :optional => true}.merge()) end |
Instance Method Details
#optionality_implied? ⇒ Boolean
120 121 122 |
# File 'lib/action_controller/routing/segments.rb', line 120 def optionality_implied? true end |