Module: Mars::Mixins
- Included in:
- App
- Defined in:
- lib/mars_mixins.rb
Instance Method Summary collapse
Instance Method Details
#brew(coffee) ⇒ Object
7 8 9 10 |
# File 'lib/mars_mixins.rb', line 7 def brew(coffee) command = ['coffee', '-p', '--no-wrap'].join(' ') IO.popen("#{command} #{coffee}") end |
#open_file(full_path_and_filename) ⇒ Object
3 4 5 |
# File 'lib/mars_mixins.rb', line 3 def open_file(full_path_and_filename) open(full_path_and_filename,'r') { |file| file.read } end |