Class: TestIndentedXmlMarkup::TestXmlEvents::EventHandler

Inherits:
Object
  • Object
show all
Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/builder-3.2.4/test/test_markupbuilder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeEventHandler

Returns a new instance of EventHandler.



599
600
601
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/builder-3.2.4/test/test_markupbuilder.rb', line 599

def initialize
	@events = []
end

Instance Attribute Details

#eventsObject (readonly)

Returns the value of attribute events.



598
599
600
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/builder-3.2.4/test/test_markupbuilder.rb', line 598

def events
  @events
end

Instance Method Details

#end_tag(sym) ⇒ Object



607
608
609
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/builder-3.2.4/test/test_markupbuilder.rb', line 607

def end_tag(sym)
	@events << [:end, sym]
end

#start_tag(sym, attrs) ⇒ Object



603
604
605
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/builder-3.2.4/test/test_markupbuilder.rb', line 603

def start_tag(sym, attrs)
	@events << [:start, sym, attrs]
end

#text(txt) ⇒ Object



611
612
613
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/builder-3.2.4/test/test_markupbuilder.rb', line 611

def text(txt)
	@events << [:text, txt]
end