Method: Cinch::Plugins::Notes#initialize

Defined in:
lib/cinch/plugins/notes.rb

#initialize(*args) ⇒ Notes

Returns a new instance of Notes.



15
16
17
18
19
# File 'lib/cinch/plugins/notes.rb', line 15

def initialize(*args)
  super
  @storage = Cinch::Storage.new(config[:filename] || 'yaml/notes.yml')
  @storage.data ||= {}
end