Sha256: 32497800fa0d4a7506035d902c57845908d222e5d4a4a80903f3da57d9def91b
Contents?: true
Size: 411 Bytes
Versions: 1
Compression:
Stored size: 411 Bytes
Contents
require "musterb/version" require "musterb/musterbifier" require "musterb/binding_extractor" require "musterb/hash_extractor" require "musterb/object_extractor" require "musterb/evaluator" module Musterb def self.to_erb(template) musterbifier = Musterbifier.new(template) "<% Musterb::Evaluator.new(Musterb::BindingExtractor.new binding).tap do |musterb| %>#{musterbifier.to_erb}<% end %>" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
musterb-0.0.1 | lib/musterb.rb |