class Bunto::ThemeBuilder::ERBRenderer
Public Class Methods
new(theme_builder)
click to toggle source
# File lib/bunto/theme_builder.rb, line 101 def initialize(theme_builder) @theme_builder = theme_builder end
Public Instance Methods
bunto_version_with_minor()
click to toggle source
# File lib/bunto/theme_builder.rb, line 105 def bunto_version_with_minor Bunto::VERSION.split(".").take(2).join(".") end
render(contents)
click to toggle source
# File lib/bunto/theme_builder.rb, line 113 def render(contents) ERB.new(contents).result binding end
theme_directories()
click to toggle source
# File lib/bunto/theme_builder.rb, line 109 def theme_directories SCAFFOLD_DIRECTORIES end