class ERBX
Constants
- VERSION
Public Class Methods
load(filename)
click to toggle source
# File lib/erbx.rb, line 6 def load(filename) new File.read filename end
new(content)
click to toggle source
# File lib/erbx.rb, line 10 def new(content) erb_content = expose_erb_tags content ERB.new(erb_content, nil, '%-') # The below syntax requires ruby >= 2.6 # ERB.new(erb_content, trim_mode: '%-') end