class OpenObject

Public Class Methods

new(source=nil, &block) click to toggle source
Calls superclass method
# File lib/buildr/core/util.rb, line 198
def initialize(source=nil, &block)
  super &block
  update source if source
end

Public Instance Methods

method_missing(symbol, *args) click to toggle source
# File lib/buildr/core/util.rb, line 203
def method_missing(symbol, *args)
  if symbol.to_s =~ /=$/
    self[symbol.to_s[0..-2].to_sym] = args.first
  else
    self[symbol]
  end
end