Sha256: 7efbb8be9d2661f77cea5c9d72aaa29e7f9477401a58591260a7c328d505363a

Contents?: true

Size: 213 Bytes

Versions: 2

Compression:

Stored size: 213 Bytes

Contents

require 'erb'
require 'ostruct'
require 'active_support/core_ext/string/inflections'

module Ryonan
  class Renderer < OpenStruct
    def render(template)
      ERB.new(template).result(binding)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ryonan-0.0.2 lib/ryonan/renderer.rb
ryonan-0.0.1 lib/ryonan/renderer.rb