Class: YASM::Program Deprecated
- Defined in:
- lib/yasm/program.rb
Overview
Deprecated.
Please use Command instead.
Constant Summary
Constants inherited from Command
Class Method Summary collapse
-
.assemble(options = {}) {|program| ... } ⇒ Boolean
Finds the
yasm
program and assembles a file.
Instance Method Summary collapse
-
#assemble(options = {}) {|program| ... } ⇒ Boolean
Assembles an assembly file.
-
#target!(name) ⇒ Object
deprecated
Deprecated.
Please use Command#target= instead.
Methods inherited from Command
Class Method Details
.assemble(options = {}) {|program| ... } ⇒ Boolean
Finds the yasm
program and assembles a file.
45 46 47 |
# File 'lib/yasm/program.rb', line 45 def self.assemble(={},&block) new(,&block).assemble() end |
Instance Method Details
#assemble(options = {}) {|program| ... } ⇒ Boolean
Assembles an assembly file.
81 82 83 84 85 86 87 88 89 |
# File 'lib/yasm/program.rb', line 81 def assemble(={}) .each do |name,value| self[name] = value end yield self if block_given? run_command() end |
#target!(name) ⇒ Object
Deprecated.
Please use Command#target= instead.
94 95 96 97 |
# File 'lib/yasm/program.rb', line 94 def target!(name) self.target = name return true end |