Skip to content

Commit

Permalink
eval coment
Browse files Browse the repository at this point in the history
  • Loading branch information
omkarmoghe committed Mar 24, 2024
1 parent de75b70 commit 25efbe6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/expressive/evaluator.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
require 'delegate'

module Expressive
# Used to wrap `operands` when evaluating an `Expression`. This allows us to "extend" the functionality of an object
# without polluting the app wide definition.
class Evaluator < SimpleDelegator
def and(other)
__getobj__ && other.__getobj__
Expand Down

0 comments on commit 25efbe6

Please sign in to comment.