Class: Saytime
Instance Method Summary collapse
-
#initialize(filepath = '') ⇒ Saytime
constructor
A new instance of Saytime.
- #now(wav_player = 'play') ⇒ Object
Methods included from LIBRARY
#fetch_file, #fetch_filepath, #read
Constructor Details
#initialize(filepath = '') ⇒ Saytime
Returns a new instance of Saytime.
47 48 49 50 51 52 |
# File 'lib/saytime.rb', line 47 def initialize(filepath='') @filepath = filepath Dir.chdir filepath unless filepath.empty? end |
Instance Method Details
#now(wav_player = 'play') ⇒ Object
54 55 56 57 58 59 |
# File 'lib/saytime.rb', line 54 def now(wav_player='play') make_wav() `#{wav_player} time.wav` end |