Sha256: 95b23881bea3df71d8ad9554a600b57cf525b51f2a494b4dfdf5241bc7dbd165

Contents?: true

Size: 365 Bytes

Versions: 28

Compression:

Stored size: 365 Bytes

Contents

# A super simple expression resolver for testing... returns the boolean value as
# the result for the expression, or when not a boolean, drops the expression.
class BooleanOrBustExpressionResolver < Sparkql::ExpressionResolver

  def resolve(expression)
    if expression[:type] == :boolean
      "true" == expression[:value]
    else
      :drop
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
sparkql-1.3.0 test/support/boolean_or_bust_expression_resolver.rb
sparkql-1.2.8 test/support/boolean_or_bust_expression_resolver.rb
sparkql-1.2.7 test/support/boolean_or_bust_expression_resolver.rb
sparkql-1.2.6 test/support/boolean_or_bust_expression_resolver.rb
sparkql-1.2.5 test/support/boolean_or_bust_expression_resolver.rb
sparkql-1.2.4 test/support/boolean_or_bust_expression_resolver.rb
sparkql-1.2.3 test/support/boolean_or_bust_expression_resolver.rb
sparkql-1.2.2 test/support/boolean_or_bust_expression_resolver.rb
sparkql-1.2.1 test/support/boolean_or_bust_expression_resolver.rb
sparkql-1.2.0 test/support/boolean_or_bust_expression_resolver.rb
sparkql-1.1.17 test/support/boolean_or_bust_expression_resolver.rb
sparkql-1.1.16 test/support/boolean_or_bust_expression_resolver.rb
sparkql-1.1.15 test/support/boolean_or_bust_expression_resolver.rb
sparkql-1.1.14 test/support/boolean_or_bust_expression_resolver.rb
sparkql-1.1.13 test/support/boolean_or_bust_expression_resolver.rb
sparkql-1.1.12 test/support/boolean_or_bust_expression_resolver.rb
sparkql-1.1.11 test/support/boolean_or_bust_expression_resolver.rb
sparkql-1.1.10 test/support/boolean_or_bust_expression_resolver.rb
sparkql-1.1.9 test/support/boolean_or_bust_expression_resolver.rb
sparkql-1.1.8 test/support/boolean_or_bust_expression_resolver.rb