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
24 25 26 |
# File 'lib/solid/parser.rb', line 24 def end_value @end_value end |
#exclusive ⇒ Object
Returns the value of attribute exclusive
24 25 26 |
# File 'lib/solid/parser.rb', line 24 def exclusive @exclusive end |
#start_value ⇒ Object
Returns the value of attribute start_value
24 25 26 |
# File 'lib/solid/parser.rb', line 24 def start_value @start_value end |
Instance Method Details
#evaluate(context) ⇒ Object
25 26 27 |
# File 'lib/solid/parser.rb', line 25 def evaluate(context) Range.new(start_value.evaluate(context), end_value.evaluate(context), exclusive) end |