Class: ActionController::Routing::DividerSegment
- Inherits:
-
StaticSegment
- Object
- Segment
- StaticSegment
- ActionController::Routing::DividerSegment
- Defined in:
- lib/action_controller/routing.rb
Overview
:nodoc:
Instance Attribute Summary
Attributes inherited from StaticSegment
Attributes inherited from Segment
Instance Method Summary collapse
-
#initialize(value = nil) ⇒ DividerSegment
constructor
A new instance of DividerSegment.
- #optionality_implied? ⇒ Boolean
Methods inherited from StaticSegment
#build_pattern, #interpolation_chunk, #regexp_chunk, #to_s
Methods inherited from Segment
#all_optionals_available_condition, #continue_string_structure, #extraction_code, #interpolation_statement, #match_extraction, #string_structure
Constructor Details
#initialize(value = nil) ⇒ DividerSegment
Returns a new instance of DividerSegment.
629 630 631 632 633 |
# File 'lib/action_controller/routing.rb', line 629 def initialize(value = nil) super(value) self.raw = true self.is_optional = true end |
Instance Method Details
#optionality_implied? ⇒ Boolean
635 636 637 |
# File 'lib/action_controller/routing.rb', line 635 def optionality_implied? true end |