Module: Erubis::Evaluator
- Included in:
- Basic::Engine, PI::Engine, RubyEvaluator
- Defined in:
- lib/erubis/evaluator.rb
Overview
evaluate code
Instance Attribute Summary collapse
-
#filename ⇒ Object
Returns the value of attribute filename.
-
#src ⇒ Object
Returns the value of attribute src.
Class Method Summary collapse
-
.supported_properties ⇒ Object
:nodoc:.
Instance Method Summary collapse
Instance Attribute Details
#filename ⇒ Object
Returns the value of attribute filename.
23 24 25 |
# File 'lib/erubis/evaluator.rb', line 23 def filename @filename end |
#src ⇒ Object
Returns the value of attribute src.
23 24 25 |
# File 'lib/erubis/evaluator.rb', line 23 def src @src end |
Class Method Details
.supported_properties ⇒ Object
:nodoc:
19 20 21 |
# File 'lib/erubis/evaluator.rb', line 19 def self.supported_properties # :nodoc: return [] end |
Instance Method Details
#evaluate(*args) ⇒ Object
33 34 35 |
# File 'lib/erubis/evaluator.rb', line 33 def evaluate(*args) raise NotSupportedError.new("evaluation of code except Ruby is not supported.") end |
#init_evaluator(properties) ⇒ Object
25 26 27 |
# File 'lib/erubis/evaluator.rb', line 25 def init_evaluator(properties) @filename = properties[:filename] end |
#result(*args) ⇒ Object
29 30 31 |
# File 'lib/erubis/evaluator.rb', line 29 def result(*args) raise NotSupportedError.new("evaluation of code except Ruby is not supported.") end |