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.



359
360
361
# File 'lib/brut/front_end/routing.rb', line 359

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

Instance Method Details

#prepositionObject



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

def preposition = "By"

#suffixObject



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

def suffix = "Page"