Sha256: e15ac9622ddcda3d23d985179334ff748233488390cf9fc8a91006641a24519b

Contents?: true

Size: 164 Bytes

Versions: 5

Compression:

Stored size: 164 Bytes

Contents

module Snippets
  module Helper
    def snippet(slug, &block)
      text = capture(&block) if block_given?
      Snippet.get(slug, :text => text)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
djanowski-snippets-0.0.2 lib/snippets/helper.rb
djanowski-snippets-0.0.3 lib/snippets/helper.rb
djanowski-snippets-0.1.1 lib/snippets/helper.rb
djanowski-snippets-0.1.2 lib/snippets/helper.rb
djanowski-snippets-0.1 lib/snippets/helper.rb