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.



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

def filename
  @filename
end

#srcObject

Returns the value of attribute src.



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

def src
  @src
end

Class Method Details

.supported_propertiesObject

:nodoc:



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

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

Instance Method Details

#evaluate(*args) ⇒ Object

Raises:



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

Raises:



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