Module: Erubis::Evaluator

Included in:
Basic::Engine, PI::Engine, RubyEvaluator
Defined in:
lib/erubis/evaluator.rb

Overview

evaluate code

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#filenameObject

Returns the value of attribute filename.



24
25
26
# File 'lib/erubis/evaluator.rb', line 24

def filename
  @filename
end

#srcObject

Returns the value of attribute src.



24
25
26
# File 'lib/erubis/evaluator.rb', line 24

def src
  @src
end

Class Method Details

.supported_propertiesObject

:nodoc:



20
21
22
# File 'lib/erubis/evaluator.rb', line 20

def self.supported_properties    # :nodoc:
  return []
end

Instance Method Details

#evaluate(*args) ⇒ Object

Raises:



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

Raises:



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