Module: Texter::TextsHelper

Defined in:
app/helpers/texter/texts_helper.rb

Instance Method Summary collapse

Instance Method Details

#block(path, options = {}) ⇒ Object



7
8
9
# File 'app/helpers/texter/texts_helper.rb', line 7

def block(path, options = {})
  display_text(path, :block, options)
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, options = {})
  text = Texter::BuildText.call(path, tag_type, @virtual_path)
  presenter = Texter::TextPresenter.new(text, self, options)
  presenter.body
end

#inline(path, options = {}) ⇒ Object



3
4
5
# File 'app/helpers/texter/texts_helper.rb', line 3

def inline(path, options = {})
  display_text(path, :inline, options)
end