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
yasmprogram 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.
43 44 45 |
# File 'lib/yasm/program.rb', line 43 def self.assemble(={},&block) new(,&block).assemble() end |
Instance Method Details
#assemble(options = {}) {|program| ... } ⇒ Boolean
Assembles an assembly file.
79 80 81 82 83 84 85 86 87 |
# File 'lib/yasm/program.rb', line 79 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.
92 93 94 95 |
# File 'lib/yasm/program.rb', line 92 def target!(name) self.target = name return true end |