Module: Texter::TextsHelper
- Defined in:
- app/helpers/texter/texts_helper.rb
Instance Method Summary collapse
- #block(path, options = {}) ⇒ Object
- #display_text(path, tag_type, options = {}) ⇒ Object
- #inline(path, options = {}) ⇒ Object
Instance Method Details
#block(path, options = {}) ⇒ Object
7 8 9 |
# File 'app/helpers/texter/texts_helper.rb', line 7 def block(path, = {}) display_text(path, :block, ) end |
#display_text(path, tag_type, options = {}) ⇒ Object
11 12 13 14 15 |
# File 'app/helpers/texter/texts_helper.rb', line 11 def display_text(path, tag_type, = {}) text = Texter::BuildText.call(path, tag_type, @virtual_path) presenter = Texter::TextPresenter.new(text, self, ) presenter.body end |
#inline(path, options = {}) ⇒ Object
3 4 5 |
# File 'app/helpers/texter/texts_helper.rb', line 3 def inline(path, = {}) display_text(path, :inline, ) end |