Method: Print::Resources::Base#initialize
- Defined in:
- lib/print/resources/base.rb
#initialize(options = {}) {|_self| ... } ⇒ Base
Returns a new instance of Base.
5 6 7 8 9 10 |
# File 'lib/print/resources/base.rb', line 5 def initialize( = {}) .each do |key, value| instance_variable_set("@#{key}", value) end yield(self) if block_given? end |