class Rox::Core::EvaluationResult

Attributes

value[R]

Public Class Methods

new(value) click to toggle source
# File lib/rox/core/roxx/evaluation_result.rb, line 9
def initialize(value)
  @value = value
end

Public Instance Methods

bool_value() click to toggle source
# File lib/rox/core/roxx/evaluation_result.rb, line 13
def bool_value
  return false if value.nil?
  return value if Utils.boolean?(value)

  nil
end
string_value() click to toggle source
# File lib/rox/core/roxx/evaluation_result.rb, line 20
def string_value
  return value if value.is_a? String
  return nil if value.nil?
  return Flag::FLAG_TRUE_VALUE if value
  return Flag::FLAG_FALSE_VALUE unless value

  nil
end