Method: Cuca::URLMap#initialize

Defined in:
lib/cuca/urlmap.rb

#initialize(base_path, path_info, default_actions = ['index']) ⇒ URLMap

Returns a new instance of URLMap.



261
262
263
264
265
266
267
268
269
270
271
272
273
# File 'lib/cuca/urlmap.rb', line 261

def initialize(base_path, path_info, default_actions = ['index'])
  @path_info = path_info
  @base_path = clean_path(File.expand_path(base_path))
  @script    = ''
  @subcall   = nil
  @default_actions = default_actions
  @assigns = {}
  @action = ''
  @action_path = ''
  @path_tree = [@base_path]
  scan
  self
end