Sha256: 73c740c10f164321a8a8f97386db7aeb6668ab5e8eb34896659862c75d64f0bf

Contents?: true

Size: 277 Bytes

Versions: 7

Compression:

Stored size: 277 Bytes

Contents

require 'erubis'
module Erubis
  class MEruby < Erubis::Eruby
    include PercentLineEnhancer
    include StringBufferEnhancer
  end
  def self.load_yaml_file(file, binding = binding)
    YAML::load(Erubis::MEruby.new(IO.read(File.expand_path(file))).result(binding))
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
merb-0.4.0 lib/merb/erubis_ext.rb
merb-0.4.1 lib/merb/erubis_ext.rb
merb-0.4.2 lib/merb/erubis_ext.rb
merb-0.5.0 lib/merb/erubis_ext.rb
merb-0.5.1 lib/merb/erubis_ext.rb
merb-0.5.2 lib/merb/erubis_ext.rb
merb-0.5.3 lib/merb/erubis_ext.rb