Class: PinkShirt::SAX::Base

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

Constant Summary collapse

TAGS =
[]

Instance Method Summary collapse

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_sObject



14
15
16
# File 'lib/pink_shirt/sax/base.rb', line 14

def to_s
  @output
end