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.
25 26 27 |
# File 'lib/erubis/evaluator.rb', line 25 def filename @filename end |
#src ⇒ Object
Returns the value of attribute src.
25 26 27 |
# File 'lib/erubis/evaluator.rb', line 25 def src @src end |
Class Method Details
.supported_properties ⇒ Object
:nodoc:
21 22 23 |
# File 'lib/erubis/evaluator.rb', line 21 def self.supported_properties # :nodoc: return [] end |
Instance Method Details
#evaluate(*args) ⇒ Object
35 36 37 |
# File 'lib/erubis/evaluator.rb', line 35 def evaluate(*args) raise NotSupportedError.new("evaluation of code except Ruby is not supported.") end |
#init_evaluator(properties) ⇒ Object
27 28 29 |
# File 'lib/erubis/evaluator.rb', line 27 def init_evaluator(properties) @filename = properties[:filename] end |
#result(*args) ⇒ Object
31 32 33 |
# File 'lib/erubis/evaluator.rb', line 31 def result(*args) raise NotSupportedError.new("evaluation of code except Ruby is not supported.") end |