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.



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

def filename
  @filename
end

#srcObject

Returns the value of attribute src.



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

def src
  @src
end

Class Method Details

.supported_propertiesObject

:nodoc:



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

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

Instance Method Details

#evaluate(*args) ⇒ Object

Raises:



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

Raises:



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