Module: Simplesnippets::Helper
- Defined in:
- lib/simplesnippets/helper.rb
Instance Method Summary collapse
Instance Method Details
#snippet(slug, options = {}, &block) ⇒ Object
3 4 5 6 |
# File 'lib/simplesnippets/helper.rb', line 3 def snippet(slug, = {}, &block) text = capture(&block) if block_given? Snippet.get(slug, {:text => text}.merge()) end |