Class: PinkShirt::SAX::Preformatted
- Defined in:
- lib/pink_shirt/sax/preformatted.rb
Constant Summary collapse
- TAGS =
%(pre)
Instance Method Summary collapse
Methods inherited from Base
#add_attributes, #initialize, #method_missing, #to_s
Constructor Details
This class inherits a constructor from PinkShirt::SAX::Base
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class PinkShirt::SAX::Base
Instance Method Details
#end_pre ⇒ Object
10 11 12 |
# File 'lib/pink_shirt/sax/preformatted.rb', line 10 def end_pre @flags.pre = false end |
#start_pre(attrs) ⇒ Object
5 6 7 8 |
# File 'lib/pink_shirt/sax/preformatted.rb', line 5 def start_pre attrs @flags.pre = true @output << "pre#{add_attributes(attrs)}. " end |