Module: Gumdrop::ViewHelpers
- Included in:
- Context
- Defined in:
- lib/gumdrop/view_helpers.rb
Instance Method Summary collapse
- #gumdrop_version ⇒ Object
- #hidden(&block) ⇒ Object
- #markdown(source) ⇒ Object
- #textile(source) ⇒ Object
Instance Method Details
#gumdrop_version ⇒ Object
19 20 21 |
# File 'lib/gumdrop/view_helpers.rb', line 19 def gumdrop_version ::Gumdrop::VERSION end |
#hidden(&block) ⇒ Object
5 6 7 |
# File 'lib/gumdrop/view_helpers.rb', line 5 def hidden(&block) #no-op end |
#markdown(source) ⇒ Object
9 10 11 12 |
# File 'lib/gumdrop/view_helpers.rb', line 9 def markdown(source) m= Tilt['markdown'].new { source } m.render end |
#textile(source) ⇒ Object
14 15 16 17 |
# File 'lib/gumdrop/view_helpers.rb', line 14 def textile(source) m= Tilt['textile'].new { source } m.render end |