Method: QuiverToolbox::Note#initialize
- Defined in:
- lib/quiver_toolbox/note.rb
#initialize(attributes = nil) {|_self| ... } ⇒ Note
Returns a new instance of Note.
53 54 55 56 57 58 |
# File 'lib/quiver_toolbox/note.rb', line 53 def initialize(attributes = nil) attributes.each do |k, v| send("#{k.to_s}=", v) if respond_to?("#{k.to_s}=") end if attributes yield self if block_given? end |