Class: Hecks::Runtime::CommandRules::Arithmetic::MutationOp

Inherits:
Struct
  • Object
show all
Defined in:
lib/hecks/runtime/command_rules/arithmetic.rb

Overview

The ops Runtime::CommandInterpreter applies. Declared the same way in Vocabulary::MutationOp (language/bluebook/vocabulary.bluebook) — spec/vocabulary_conformance_spec holds the two tables equal, so increment/decrement's sign cannot drift from what the language says each op means. set/append carry no sign — they do no arithmetic.

Instance Attribute Summary collapse

Instance Attribute Details

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



18
19
20
# File 'lib/hecks/runtime/command_rules/arithmetic.rb', line 18

def name
  @name
end

#signObject

Returns the value of attribute sign

Returns:

  • (Object)

    the current value of sign



18
19
20
# File 'lib/hecks/runtime/command_rules/arithmetic.rb', line 18

def sign
  @sign
end