Module: Headshop

Defined in:
lib/headshop.rb

Defined Under Namespace

Modules: MetaTagHelper

Class Method Summary collapse

Class Method Details

.config_file=(config_file) ⇒ Object



7
8
9
10
# File 'lib/headshop.rb', line 7

def self.config_file= config_file
  @@config_file = config_file
  read_config_file @@config_file
end

.read_config_file(config_file) ⇒ Object



12
13
14
# File 'lib/headshop.rb', line 12

def self.read_config_file config_file
  self. = YAML.load_file(config_file)
end

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

Yields:

  • (_self)

Yield Parameters:

  • _self (Headshop)

    the object that the method was called on



16
17
18
# File 'lib/headshop.rb', line 16

def self.setup
   yield self
end