Class: Parser

Inherits:
Object
  • Object
show all
Defined in:
lib/tern.rb

Instance Method Summary collapse

Instance Method Details

#render_file(file_path) ⇒ Object



13
14
15
16
# File 'lib/tern.rb', line 13

def render_file(file_path)
  string = File.read file_path
  render_text(string)
end

#render_text(text) ⇒ Object



9
10
11
# File 'lib/tern.rb', line 9

def render_text(text)
  ERB.new(text).result(binding)
end