Method: Buff::Config::Ruby#from_ruby

Defined in:
lib/buff/config/ruby.rb

#from_ruby(contents, path = nil) ⇒ Buff::Config::Ruby



118
119
120
121
122
# File 'lib/buff/config/ruby.rb', line 118

def from_ruby(contents, path=nil)
  hash = Buff::Config::Ruby::Evaluator.parse(contents, path, self)
  mass_assign(hash)
  self
end