Class: PinkShirt::SAX::Preformatted

Inherits:
Base
  • Object
show all
Defined in:
lib/pink_shirt/sax/preformatted.rb

Constant Summary

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

- (Object) end_pre



10
11
12
# File 'lib/pink_shirt/sax/preformatted.rb', line 10

def end_pre
  @flags.pre = false
end

- (Object) start_pre(attrs)



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