Class: TypographerHelper::Parsers::SimpleFormat

Inherits:
Object
  • Object
show all
Includes:
ActionView::Helpers::TagHelper, ActionView::Helpers::TextHelper
Defined in:
lib/typographer/parsers/simple_format.rb

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ SimpleFormat

Returns a new instance of SimpleFormat.



10
11
12
# File 'lib/typographer/parsers/simple_format.rb', line 10

def initialize(options = {})
  @options = options
end

Instance Method Details

#parse(string) ⇒ Object



14
15
16
# File 'lib/typographer/parsers/simple_format.rb', line 14

def parse(string)
  self.simple_format string, @options
end