abstract class Amber::Router::Segment(T)

Direct Known Subclasses

Defined in:

amber/router/segment.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(segment : String) #

[View source]

Class Method Detail

def self.type_for(segment : String) #

[View source]

Instance Method Detail

def inspect(*, ts = 0) #

[View source]
def literal_match?(curious_segment : String) : Bool #

[View source]
def match?(curious_segment : String) : Bool #

[View source]
def parameter : String #

[View source]
def parametric? : Bool #

[View source]
def route_set : RouteSet(T) #

[View source]
def route_set=(route_set : RouteSet(T)) #

[View source]
def segment : String #

[View source]
def segment=(segment : String) #

[View source]
def to_s(i : IO) #
Description copied from class Reference

Appends a short String representation of this object which includes its class name and its object address.

class Person
  def initialize(@name : String, @age : Int32)
  end
end

Person.new("John", 32).to_s # => #<Person:0x10a199f20>

[View source]