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 collapse
- TAGS =
[]
Instance Method Summary collapse
- #add_attributes(attrs) ⇒ Object
-
#initialize(input, flags) ⇒ Base
constructor
A new instance of Base.
- #method_missing(*args) ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(input, flags) ⇒ Base
Returns 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
#method_missing(*args) ⇒ Object
18 19 |
# File 'lib/pink_shirt/sax/base.rb', line 18 def method_missing(*args) end |
Instance Method Details
#add_attributes(attrs) ⇒ Object
10 11 12 |
# File 'lib/pink_shirt/sax/base.rb', line 10 def add_attributes(attrs) PinkShirt::Attributes.new(attrs).write end |
#to_s ⇒ Object
14 15 16 |
# File 'lib/pink_shirt/sax/base.rb', line 14 def to_s @output end |