Class: Zooplankton::Parser
- Inherits:
-
Object
- Object
- Zooplankton::Parser
- Defined in:
- lib/zooplankton/parser.rb
Constant Summary collapse
- AMPERSAND =
'&'.freeze
- QUESTION_MARK =
'?'.freeze
Instance Method Summary collapse
- #path_template_for(helper_name, query_params = {}, supplied_params = nil) ⇒ Object
- #url_template_for(helper_name, query_params = {}, supplied_params = nil) ⇒ Object
Instance Method Details
#path_template_for(helper_name, query_params = {}, supplied_params = nil) ⇒ Object
9 10 11 |
# File 'lib/zooplankton/parser.rb', line 9 def path_template_for(helper_name, query_params={}, supplied_params=nil) build_template(:path, helper_name, *parse_params(query_params, supplied_params)) end |
#url_template_for(helper_name, query_params = {}, supplied_params = nil) ⇒ Object
13 14 15 |
# File 'lib/zooplankton/parser.rb', line 13 def url_template_for(helper_name, query_params={}, supplied_params=nil) build_template(:url, helper_name, *parse_params(query_params, supplied_params)) end |