Module: ActionView::Helpers::TextHelper

Defined in:
lib/typography/helper.rb

Instance Method Summary collapse

Instance Method Details

#ty(text, options = {}) ⇒ Object



2
3
4
# File 'lib/typography/helper.rb', line 2

def ty(text, options = {})
  TypographyHelper::Core.new(text.html_safe, options).typography
end

#ty_simple(text, html_options = {}) ⇒ Object



5
6
7
# File 'lib/typography/helper.rb', line 5

def ty_simple(text, html_options={})
  simple_format ty(text), html_options
end