Class: Brut::FrontEnd::Routing::FormRoute

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

Direct Known Subclasses

CLI::Apps::Scaffold::Action::Route

Instance Attribute Summary collapse

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) ⇒ FormRoute

Returns a new instance of FormRoute.



368
369
370
371
# File 'lib/brut/front_end/routing.rb', line 368

def initialize(path_template)
  super(Brut::FrontEnd::HttpMethod.new(:post),path_template)
  @form_class = self.locate_handler_class("Form","With")
end

Instance Attribute Details

#form_classObject (readonly)

Returns the value of attribute form_class.



367
368
369
# File 'lib/brut/front_end/routing.rb', line 367

def form_class
  @form_class
end