Class: ImproveTypography::Processor
- Inherits:
-
Struct
- Object
- Struct
- ImproveTypography::Processor
- Defined in:
- lib/improve_typography/processor.rb
Direct Known Subclasses
ImproveTypography::Processors::Apostrophe, ImproveTypography::Processors::DoubleQuotes, ImproveTypography::Processors::Ellipsis, ImproveTypography::Processors::EmDash, ImproveTypography::Processors::EnDash, ImproveTypography::Processors::MultiplySign, ImproveTypography::Processors::Nbsp, ImproveTypography::Processors::Numbers, ImproveTypography::Processors::SingleQuotes, ImproveTypography::Processors::Units, ImproveTypography::Processors::WordLineSeparator
Instance Attribute Summary collapse
-
#options ⇒ Object
Returns the value of attribute options.
-
#str ⇒ Object
Returns the value of attribute str.
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(str, options = {}) ⇒ Processor
constructor
A new instance of Processor.
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, = {}) super(str, ) end |
Instance Attribute Details
#options ⇒ Object
Returns the value of attribute options
2 3 4 |
# File 'lib/improve_typography/processor.rb', line 2 def end |
#str ⇒ Object
Returns the value of attribute 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
#call ⇒ Object
18 19 20 |
# File 'lib/improve_typography/processor.rb', line 18 def call str end |