Class: ShuntingYard::Operator

Inherits:
Struct
  • Object
show all
Defined in:
lib/shunting_yard/structs.rb

Instance Attribute Summary collapse

Instance Attribute Details

#associativityObject

Returns the value of attribute associativity

Returns:

  • (Object)

    the current value of associativity



8
9
10
# File 'lib/shunting_yard/structs.rb', line 8

def associativity
  @associativity
end

#evaluatorObject

Returns the value of attribute evaluator

Returns:

  • (Object)

    the current value of evaluator



8
9
10
# File 'lib/shunting_yard/structs.rb', line 8

def evaluator
  @evaluator
end

#precedenceObject

Returns the value of attribute precedence

Returns:

  • (Object)

    the current value of precedence



8
9
10
# File 'lib/shunting_yard/structs.rb', line 8

def precedence
  @precedence
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



8
9
10
# File 'lib/shunting_yard/structs.rb', line 8

def value
  @value
end