Class: CloudRailSi::ServiceCode::JumpRel
- Inherits:
-
Object
- Object
- CloudRailSi::ServiceCode::JumpRel
- Defined in:
- lib/cloudrail_si/servicecode/commands/JumpRel.rb
Instance Method Summary collapse
Instance Method Details
#execute(environment, parameters) ⇒ Object
10 11 12 13 14 15 |
# File 'lib/cloudrail_si/servicecode/commands/JumpRel.rb', line 10 def execute(environment, parameters) Helper.assert(parameters.length === 1) relative_end_pos = Helper.resolve(environment, parameters[0]) Helper.assert(Helper.is_number(relative_end_pos)) environment.increment_current_service_code_line(relative_end_pos) end |
#get_identifier ⇒ Object
6 7 8 |
# File 'lib/cloudrail_si/servicecode/commands/JumpRel.rb', line 6 def get_identifier 'jumpRel' end |