Class: Dvi::Opcode::Base
- Inherits:
-
Object
- Object
- Dvi::Opcode::Base
- Defined in:
- lib/dvi/opcode.rb
Overview
Base is a super class for all Opcode classes.
Direct Known Subclasses
Bop, ChangeRegister0, Eop, FntDef, FntNum, Nop, Pop, Post, PostPost, Pre, Push, RuleBase, SetChar, XXX
Class Method Summary collapse
-
.range ⇒ Object
Returns the range of opcode byte.
-
.read(cmd, io) ⇒ Object
:nodoc:.
-
.set_range(r) ⇒ Object
Sets the range of opcode byte.
Instance Method Summary collapse
-
#interpret(ps) ⇒ Object
:nodoc:.
Class Method Details
.range ⇒ Object
Returns the range of opcode byte.
17 18 19 |
# File 'lib/dvi/opcode.rb', line 17 def self.range return @range end |
.read(cmd, io) ⇒ Object
:nodoc:
21 22 23 |
# File 'lib/dvi/opcode.rb', line 21 def self.read(cmd, io) #:nodoc: return self.new end |
.set_range(r) ⇒ Object
Sets the range of opcode byte.
8 9 10 11 12 13 14 |
# File 'lib/dvi/opcode.rb', line 8 def self.set_range(r) if r.kind_of?(Range) @range = r else @range = r..r end end |
Instance Method Details
#interpret(ps) ⇒ Object
:nodoc:
25 26 27 |
# File 'lib/dvi/opcode.rb', line 25 def interpret(ps) #:nodoc: raise NotImplemented, self end |