Class: SciolyFF::Interpreter::HTML::Helpers

Inherits:
Object
  • Object
show all
Defined in:
lib/sciolyff/interpreter/html/helpers.rb

Overview

Holds helper methods used in template.html.erb

Instance Method Summary collapse

Instance Method Details

#get_binding(interpreter) ⇒ Object



9
10
11
12
# File 'lib/sciolyff/interpreter/html/helpers.rb', line 9

def get_binding(interpreter)
  i = interpreter
  binding
end

#templateObject



5
6
7
# File 'lib/sciolyff/interpreter/html/helpers.rb', line 5

def template
  File.read(File.join(__dir__, 'template.html.erb'))
end