Fuel plugin to deploy Sensu
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

operation.rb 399B

12345678910111213141516171819202122
  1. require_relative './node'
  2. module Dentaku
  3. module AST
  4. class Operation < Node
  5. attr_reader :left, :right
  6. def initialize(left, right)
  7. @left = left
  8. @right = right
  9. end
  10. def dependencies(context={})
  11. (left.dependencies(context) + right.dependencies(context)).uniq
  12. end
  13. def self.right_associative?
  14. false
  15. end
  16. end
  17. end
  18. end