Method: Raven::Interface#initialize
- Defined in:
- lib/raven/interface.rb
#initialize(attributes = nil) {|_self| ... } ⇒ Interface
Returns a new instance of Interface.
3 4 5 6 7 8 9 |
# File 'lib/raven/interface.rb', line 3 def initialize(attributes = nil) attributes.each do |attr, value| public_send "#{attr}=", value end if attributes yield self if block_given? end |