Module: Humanizer

Defined in:
lib/humanizer.rb,
lib/humanizer/config.rb,
lib/humanizer/version.rb

Defined Under Namespace

Classes: Config, Human, Sanitize

Constant Summary collapse

VERSION =
"0.0.9"

Class Method Summary collapse

Class Method Details

.configObject



8
9
10
11
# File 'lib/humanizer.rb', line 8

def config
  @config ||= Config.new
  @config
end

.config=(data) ⇒ Object



4
5
6
# File 'lib/humanizer.rb', line 4

def config=(data)
  @config = data
end

.configure {|@config| ... } ⇒ Object

Yields:



13
14
15
16
# File 'lib/humanizer.rb', line 13

def configure(&proc)
  @config ||= Config.new
  yield @config
end