Method: Bling#initialize
- Defined in:
- lib/bling/bling.rb
#initialize(bling_file = ".gems") ⇒ Bling
Returns a new instance of Bling.
5 6 7 8 9 |
# File 'lib/bling/bling.rb', line 5 def initialize(bling_file = ".gems") raise ArgumentError, "bling file not found" unless File.exists?(bling_file) @yaml = YAML::load(ERB.new(File.read(bling_file)).result) end |