class ToSOperator
Public Class Methods
new(indexes)
click to toggle source
# File lib/cauldron/operator/to_s_operator.rb, line 3 def initialize(indexes) @indexes = indexes end
Public Instance Methods
build(operators, scope)
click to toggle source
# File lib/cauldron/operator/to_s_operator.rb, line 7 def build(operators, scope) [ :call, [:vcall, [:@ident, scope[@indexes[0]]] ], :".", [:@ident, "to_s"] ] end