Class: M3ta::Builder

Inherits:
Hashie::Dash
  • Object
show all
Defined in:
lib/m3ta/builder.rb

Instance Method Summary collapse

Instance Method Details

#apply(attributes = {}, &block) ⇒ Object



22
23
24
25
26
# File 'lib/m3ta/builder.rb', line 22

def apply(attributes = {}, &block)
  merge!(attributes)
  block.call(self) if block_given?
  self
end