Module: Mokio::SiteHelper

Defined in:
lib/mokio/site_helper.rb

Overview

Module for tour guide in Mokio

Defined Under Namespace

Modules: T

Class Method Summary collapse

Class Method Details

.add_config(new_config) ⇒ Object

Adds new_config to config variable

Attributes

  • new_config - Hash of parameters to add



142
143
144
# File 'lib/mokio/site_helper.rb', line 142

def self.add_config(new_config)
  self.config.merge!(new_config)
end

.setup {|_self| ... } ⇒ Object

Some way to change this module variables

Yields:

  • (_self)

Yield Parameters:



149
150
151
# File 'lib/mokio/site_helper.rb', line 149

def self.setup
  yield self
end

.steps_for_url(current_path) ⇒ Object

end config



127
128
129
130
131
132
133
# File 'lib/mokio/site_helper.rb', line 127

def self.steps_for_url(current_path) #:nodoc:
  self.config.each do |key, value|
    return self.config[key.to_s] if key == current_path
  end

  {}
end