Class: PinkShirt::SAX::Base
- Inherits:
-
Object
- Object
- PinkShirt::SAX::Base
- Defined in:
- lib/pink_shirt/sax/base.rb
Direct Known Subclasses
Acronym, Basic, BlockLevel, BoilerPlate, Images, Links, Lists, Preformatted, Script, Tables
Constant Summary
- TAGS =
[]
Instance Method Summary (collapse)
- - (Object) add_attributes(attrs)
-
- (Base) initialize(input, flags)
constructor
A new instance of Base.
- - (Object) method_missing(*args)
- - (Object) to_s
Constructor Details
- (Base) initialize(input, flags)
A new instance of Base
5 6 7 8 |
# File 'lib/pink_shirt/sax/base.rb', line 5 def initialize(input, flags) @output = input @flags = flags end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
- (Object) method_missing(*args)
18 19 |
# File 'lib/pink_shirt/sax/base.rb', line 18 def method_missing(*args) end |
Instance Method Details
- (Object) add_attributes(attrs)
10 11 12 |
# File 'lib/pink_shirt/sax/base.rb', line 10 def add_attributes(attrs) PinkShirt::Attributes.new(attrs).write end |
- (Object) to_s
14 15 16 |
# File 'lib/pink_shirt/sax/base.rb', line 14 def to_s @output end |