Class: ImproveTypography::Processor

Inherits:
Struct
  • Object
show all
Defined in:
lib/improve_typography/processor.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(str, options = {}) ⇒ Processor

Returns a new instance of Processor.



14
15
16
# File 'lib/improve_typography/processor.rb', line 14

def initialize(str, options = {})
  super(str, options)
end

Instance Attribute Details

#optionsObject

Returns the value of attribute options

Returns:

  • (Object)

    the current value of options



2
3
4
# File 'lib/improve_typography/processor.rb', line 2

def options
  @options
end

#strObject

Returns the value of attribute str

Returns:

  • (Object)

    the current value of str



2
3
4
# File 'lib/improve_typography/processor.rb', line 2

def str
  @str
end

Class Method Details

.call(*args) ⇒ Object



4
5
6
# File 'lib/improve_typography/processor.rb', line 4

def call(*args)
  new(*args).call
end

.inherited(klass) ⇒ Object



8
9
10
11
# File 'lib/improve_typography/processor.rb', line 8

def inherited(klass)
  ImproveTypography::Base.add_processor_class(klass)
  super
end

Instance Method Details

#callObject



18
19
20
# File 'lib/improve_typography/processor.rb', line 18

def call
  str
end