Class: Brut::FrontEnd::Routing::PageRoute

Inherits:
Route
  • Object
show all
Defined in:
lib/brut/front_end/routing.rb

Direct Known Subclasses

CLI::Apps::Scaffold::Page::Route

Instance Attribute Summary

Attributes inherited from Route

#handler_class, #http_method, #path_template

Instance Method Summary collapse

Methods inherited from Route

#==, #path, #path_params, #url

Constructor Details

#initialize(path_template) ⇒ PageRoute

Returns a new instance of PageRoute.



381
382
383
# File 'lib/brut/front_end/routing.rb', line 381

def initialize(path_template)
  super(Brut::FrontEnd::HttpMethod.new(:get),path_template)
end

Instance Method Details

#prepositionObject



385
# File 'lib/brut/front_end/routing.rb', line 385

def preposition = "By"

#suffixObject



384
# File 'lib/brut/front_end/routing.rb', line 384

def suffix = "Page"