Class: Hecks::Runtime::CommandRules::Arithmetic::MutationOp
- Inherits:
-
Struct
- Object
- Struct
- Hecks::Runtime::CommandRules::Arithmetic::MutationOp
- 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
-
#name ⇒ Object
Returns the value of attribute name.
-
#sign ⇒ Object
Returns the value of attribute sign.
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name
18 19 20 |
# File 'lib/hecks/runtime/command_rules/arithmetic.rb', line 18 def name @name end |
#sign ⇒ Object
Returns the value of attribute sign
18 19 20 |
# File 'lib/hecks/runtime/command_rules/arithmetic.rb', line 18 def sign @sign end |