lib/talks.rb in talks-0.0.5 vs lib/talks.rb in talks-0.1.0

- old
+ new

@@ -1,6 +1,7 @@ require File.expand_path('../talks/configuration.rb', __FILE__) +require File.expand_path('../talks/hooks.rb', __FILE__) module Talks class << self VOICES = %w( @@ -22,9 +23,13 @@ end def say(message, options = {}) type = options[:type] || :default `say -v #{say_voice(type, options)} #{message}` + end + + def add_hooks(command) + Talks::Hooks.create command end TYPES.each do |type| define_method type do |message = nil, options = {type: type}| message ||= config.message(type)