Module: LIBRARY
- Included in:
- Saytime
- Defined in:
- lib/saytime.rb
Instance Method Summary collapse
Instance Method Details
#fetch_file(filename) ⇒ Object
32 33 34 35 36 |
# File 'lib/saytime.rb', line 32 def fetch_file(filename) filepath = fetch_filepath filename read filepath end |
#fetch_filepath(filename) ⇒ Object
21 22 23 24 25 26 27 28 29 30 |
# File 'lib/saytime.rb', line 21 def fetch_filepath(filename) if File.basename() == filename then lib = File.dirname(__FILE__) File.join(lib,'..','wav',filename) else filename end end |
#read(s) ⇒ Object
38 39 40 |
# File 'lib/saytime.rb', line 38 def read(s) RXFHelper.read(s).first end |