Class: ActionController::Routing::DividerSegment

Inherits:
StaticSegment show all
Defined in:
lib/action_controller/routing/segments.rb

Overview

:nodoc:

Constant Summary

Constants inherited from Segment

Segment::RESERVED_PCHAR, Segment::UNSAFE_PCHAR

Instance Attribute Summary

Attributes inherited from StaticSegment

#raw, #value

Attributes inherited from Segment

#is_optional

Instance Method Summary collapse

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_chunk, #interpolation_statement, #match_extraction, #string_structure

Constructor Details

#initialize(value = nil) ⇒ DividerSegment

Returns a new instance of DividerSegment.



100
101
102
103
104
# File 'lib/action_controller/routing/segments.rb', line 100

def initialize(value = nil)
  super(value)
  self.raw = true
  self.is_optional = true
end

Instance Method Details

#optionality_implied?Boolean

Returns:

  • (Boolean)


106
107
108
# File 'lib/action_controller/routing/segments.rb', line 106

def optionality_implied?
  true
end