Class: Rightscale::RightSaxParserCallback

Inherits:
Object
  • Object
show all
Defined in:
lib/slicehost_base.rb

Overview


Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(slice_parser) ⇒ RightSaxParserCallback

Returns a new instance of RightSaxParserCallback.



459
460
461
# File 'lib/slicehost_base.rb', line 459

def initialize(slice_parser)
  @slice_parser = slice_parser
end

Class Method Details

.include_callbackObject

:nodoc:



456
457
458
# File 'lib/slicehost_base.rb', line 456

def self.include_callback
  include XML::SaxParser::Callbacks
end

Instance Method Details

#on_cdata_block(cdata) ⇒ Object



474
# File 'lib/slicehost_base.rb', line 474

def on_cdata_block(cdata); end

#on_characters(chars) ⇒ Object



465
466
467
# File 'lib/slicehost_base.rb', line 465

def on_characters(chars)
  @slice_parser.text(chars)
end

#on_comment(msg) ⇒ Object



472
# File 'lib/slicehost_base.rb', line 472

def on_comment(msg); end

#on_end_documentObject



475
# File 'lib/slicehost_base.rb', line 475

def on_end_document; end

#on_end_element(name) ⇒ Object



468
469
470
# File 'lib/slicehost_base.rb', line 468

def on_end_element(name)
  @slice_parser.tag_end(name)
end

#on_processing_instruction(target, data) ⇒ Object



473
# File 'lib/slicehost_base.rb', line 473

def on_processing_instruction(target, data); end

#on_start_documentObject



471
# File 'lib/slicehost_base.rb', line 471

def on_start_document; end

#on_start_element(name, attr_hash) ⇒ Object



462
463
464
# File 'lib/slicehost_base.rb', line 462

def on_start_element(name, attr_hash)
  @slice_parser.tag_start(name, attr_hash)
end