Class: Solid::Parser::LiteralRange
- Inherits:
-
Struct
- Object
- Struct
- Solid::Parser::LiteralRange
- Defined in:
- lib/solid/parser.rb
Instance Attribute Summary collapse
-
#end_value ⇒ Object
Returns the value of attribute end_value.
-
#exclusive ⇒ Object
Returns the value of attribute exclusive.
-
#start_value ⇒ Object
Returns the value of attribute start_value.
Instance Method Summary collapse
Instance Attribute Details
#end_value ⇒ Object
Returns the value of attribute end_value
34 35 36 |
# File 'lib/solid/parser.rb', line 34 def end_value @end_value end |
#exclusive ⇒ Object
Returns the value of attribute exclusive
34 35 36 |
# File 'lib/solid/parser.rb', line 34 def exclusive @exclusive end |
#start_value ⇒ Object
Returns the value of attribute start_value
34 35 36 |
# File 'lib/solid/parser.rb', line 34 def start_value @start_value end |
Instance Method Details
#evaluate(context) ⇒ Object
35 36 37 |
# File 'lib/solid/parser.rb', line 35 def evaluate(context) Range.new(start_value.evaluate(context), end_value.evaluate(context), exclusive) end |