Class: Grably::TextJob
- Inherits:
-
Object
- Object
- Grably::TextJob
- Includes:
- Job
- Defined in:
- lib/grably/jobs/text/text.rb
Overview
:nodoc:
Instance Method Summary collapse
Methods included from Job
Instance Method Details
#build ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/grably/jobs/text/text.rb', line 9 def build out = job_dir(filename) File.open(out, 'w') do |f| dump(content, f) end out end |
#dump(content, io) ⇒ Object
17 18 19 |
# File 'lib/grably/jobs/text/text.rb', line 17 def dump(content, io) io << content end |