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