Sha256: e3e158ff78af055751e052f27d3c8e9e3816d20635fe6250ba403577d3737786
Contents?: true
Size: 444 Bytes
Versions: 2
Compression:
Stored size: 444 Bytes
Contents
require "musterb/version" require "musterb/musterbifier" require "musterb/binding_extractor" require "musterb/hash_extractor" require "musterb/object_extractor" require "musterb/null_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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
musterb-0.0.3 | lib/musterb.rb |
musterb-0.0.2 | lib/musterb.rb |