Class: TestIndentedXmlMarkup::TestXmlEvents::EventHandler
- 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
-
#events ⇒ Object
readonly
Returns the value of attribute events.
Instance Method Summary collapse
- #end_tag(sym) ⇒ Object
-
#initialize ⇒ EventHandler
constructor
A new instance of EventHandler.
- #start_tag(sym, attrs) ⇒ Object
- #text(txt) ⇒ Object
Constructor Details
#initialize ⇒ EventHandler
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
#events ⇒ Object (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 |