Skip to content

Commit c323a49

Browse files
committed
readme updates
1 parent 82a1ed2 commit c323a49

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Expression.new(:+, Scalar.new(1), Scalar.new(2), output: "one_plus_two")
5050

5151
#### Special `operators`
5252

53-
Some operators, like logical `&&` and `||` are not methods in Ruby, so we pass a special string that Expressive understands.
53+
Some operators, like logical `&&` and `||` are not methods in Ruby, so we pass a special string/symbol that Expressive understands.
5454
- `&&` is represented by `:and`
5555
- `||` is represented by `:or`
5656

@@ -66,6 +66,8 @@ environment = Environment.new(
6666

6767
environment.evaluate(Variable.new("variable_a"))
6868
#=> 1
69+
environment.evaluate(Variable.new("variable_c"))
70+
#=> MissingVariableError "Environment missing variable variable_c."
6971

7072
environment.evaluate(
7173
Expression.new(

0 commit comments

Comments
 (0)