Class: YASM::Program
- Inherits:
-
RProgram::Program
- Object
- RProgram::Program
- YASM::Program
- Defined in:
- lib/yasm/program.rb
Class Method Summary collapse
-
.assemble_temp(options = {}) {|task| ... } ⇒ TempFile
Finds the
yasm
program, then assembles an assembly file and writes the output to a temporary file. -
.assmeble(options = {}) {|task| ... } ⇒ Boolean
Finds the
yasm
program and assembles a file.
Instance Method Summary collapse
-
#assemble(options = {}) {|task| ... } ⇒ Boolean
Assembles an assembly file.
-
#assemble_temp(options = {}) {|task| ... } ⇒ TempFile
Assembles an assembly file and writes the output to a temporary file.
Class Method Details
.assemble_temp(options = {}) {|task| ... } ⇒ TempFile
Finds the yasm
program, then assembles an assembly file and writes the output to a temporary file.
48 49 50 |
# File 'lib/yasm/program.rb', line 48 def self.assemble_temp(={},&block) self.find().assemble(,&block) end |
.assmeble(options = {}) {|task| ... } ⇒ Boolean
Finds the yasm
program and assembles a file.
27 28 29 |
# File 'lib/yasm/program.rb', line 27 def self.assmeble(={},&block) self.find().assemble(,&block) end |
Instance Method Details
#assemble(options = {}) {|task| ... } ⇒ Boolean
Assembles an assembly file.
68 69 70 |
# File 'lib/yasm/program.rb', line 68 def assemble(={},&block) run_task(Task.new(,&block)) end |
#assemble_temp(options = {}) {|task| ... } ⇒ TempFile
Assembles an assembly file and writes the output to a temporary file.
88 89 90 91 92 93 94 95 |
# File 'lib/yasm/program.rb', line 88 def assemble_temp(={},&block) task = Task.new(,&block) task.output = Tempfile.new('yasm').path if run_task(task) return task.output end end |