Class: Jets::Router::MethodCreator::Generic

Inherits:
Code
  • Object
show all
Defined in:
lib/jets/router/method_creator/generic.rb

Instance Method Summary collapse

Methods inherited from Code

#action, #full_as, #full_meth_name, #full_path, #initialize, #meth_args, #meth_result, #method_name_leaf, #param_name, #url_method

Methods included from Util

#get_controller_action, #handle_on!, #join, #underscore

Constructor Details

This class inherits a constructor from Jets::Router::MethodCreator::Code

Instance Method Details

#meth_nameObject



3
4
5
# File 'lib/jets/router/method_creator/generic.rb', line 3

def meth_name
  @options[:as]
end

#path_methodObject



7
8
9
# File 'lib/jets/router/method_creator/generic.rb', line 7

def path_method
  super if @options[:as]
end