Class: ImgToScript::AbstractToken::MathMult

Inherits:
ImgToScript::AbstractToken show all
Defined in:
lib/img_to_script/abstract_token/math_mult.rb

Overview

Multiplication arithmetical operation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(left:, right:) ⇒ MathMult

Returns a new instance of MathMult.



11
12
13
14
15
16
17
# File 'lib/img_to_script/abstract_token/math_mult.rb', line 11

def initialize(left:, right:, **)
  @type = AbsTokenType::MATH_MULT
  @left = left
  @right = right

  super
end

Instance Attribute Details

#leftObject (readonly)

Returns the value of attribute left.



9
10
11
# File 'lib/img_to_script/abstract_token/math_mult.rb', line 9

def left
  @left
end

#rightObject (readonly)

Returns the value of attribute right.



9
10
11
# File 'lib/img_to_script/abstract_token/math_mult.rb', line 9

def right
  @right
end