Class: Rubyoverflow::BaseDash

Inherits:
Hashie::Dash
  • Object
show all
Defined in:
lib/rubyoverflow/base.rb

Instance Method Summary collapse

Constructor Details

#initialize(hash = {}) ⇒ BaseDash

Returns a new instance of BaseDash.



69
70
71
72
73
74
# File 'lib/rubyoverflow/base.rb', line 69

def initialize(hash={})
  hash2 = Hash.new
  hash.each { |key, value| hash2[key.strip] = value  }
  hash = hash2
  super(hash)
end