Class: Print::Resources::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/print/resources/base.rb

Direct Known Subclasses

Address

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) {|_self| ... } ⇒ Base

Returns a new instance of Base.

Yields:

  • (_self)

Yield Parameters:



5
6
7
8
9
10
# File 'lib/print/resources/base.rb', line 5

def initialize(options = {})
  options.each do |key, value|
    instance_variable_set("@#{key}", value)
  end
  yield(self) if block_given?
end