Class: Rips::Formats::Format
- Inherits:
-
Object
- Object
- Rips::Formats::Format
- Defined in:
- lib/rips/formats/format.rb
Instance Attribute Summary collapse
-
#args_number ⇒ Object
readonly
Returns the value of attribute args_number.
-
#opcode ⇒ Object
readonly
Returns the value of attribute opcode.
Instance Method Summary collapse
-
#initialize(opcode, args_number) ⇒ Format
constructor
A new instance of Format.
-
#set_arguments(args) ⇒ Object
Pass all arguments at once.
Constructor Details
#initialize(opcode, args_number) ⇒ Format
Returns a new instance of Format.
12 13 14 |
# File 'lib/rips/formats/format.rb', line 12 def initialize (opcode, args_number) @opcode, @args_number = opcode, args_number end |
Instance Attribute Details
#args_number ⇒ Object (readonly)
Returns the value of attribute args_number.
8 9 10 |
# File 'lib/rips/formats/format.rb', line 8 def args_number @args_number end |
#opcode ⇒ Object (readonly)
Returns the value of attribute opcode.
8 9 10 |
# File 'lib/rips/formats/format.rb', line 8 def opcode @opcode end |
Instance Method Details
#set_arguments(args) ⇒ Object
Pass all arguments at once
17 18 |
# File 'lib/rips/formats/format.rb', line 17 def set_arguments (args) end |