Sha256: be988a29a376d774d9d5cfb8bbc52ae3c20a556c0b69d31f42201830dd4c2819

Contents?: true

Size: 317 Bytes

Versions: 1

Compression:

Stored size: 317 Bytes

Contents

module Metamagic
  module HelperMethods
    def meta(hash = {})
      metamagic_renderer.add hash
    end

    def metamagic(hash = {})
      metamagic_renderer.add hash
      metamagic_renderer.render
    end

    private

    def metamagic_renderer
      @metamagic_renderer ||= Renderer.new(self)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
metamagic-3.0.0.beta1 lib/metamagic/helper_methods.rb