class ERBContext
Public Class Methods
new(hash)
click to toggle source
Creates an isolated ERB variable context easily from a hash @param hash [Hash] variables to use for ERB context
# File lib/nub/core.rb, line 42 def initialize(hash) hash.each{|k,v| singleton_class.send(:define_method, k){ v }} end
Public Instance Methods
get_binding()
click to toggle source
# File lib/nub/core.rb, line 46 def get_binding binding end