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.



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

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



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

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

Instance Method Details

#callObject



11
12
13
# File 'lib/improve_typography/processor.rb', line 11

def call
  str
end