Class: Zooplankton::Parser

Inherits:
Object
  • Object
show all
Defined in:
lib/zooplankton/parser.rb

Constant Summary collapse

AMPERSAND =
'&'.freeze
QUESTION_MARK =
'?'.freeze

Instance Method Summary collapse

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