Class: XPath::NullNodeAdapter

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

Instance Method Summary collapse

Instance Method Details

#attributesObject



2495
2496
2497
# File 'lib/xml/xpath.rb', line 2495

def attributes
  []
end

#childrenObject



2485
2486
2487
# File 'lib/xml/xpath.rb', line 2485

def children
  []
end

#each_following_siblingsObject



2489
2490
# File 'lib/xml/xpath.rb', line 2489

def each_following_siblings
end

#each_preceding_siblingsObject



2492
2493
# File 'lib/xml/xpath.rb', line 2492

def each_preceding_siblings
end

#indexObject



2503
2504
2505
# File 'lib/xml/xpath.rb', line 2503

def index
  0
end

#langObject



2527
2528
2529
# File 'lib/xml/xpath.rb', line 2527

def lang
  nil
end

#name_localpartObject



2511
2512
2513
# File 'lib/xml/xpath.rb', line 2511

def name_localpart
  nil
end

#namespace_uriObject



2519
2520
2521
# File 'lib/xml/xpath.rb', line 2519

def namespace_uri
  nil
end

#namespacesObject



2499
2500
2501
# File 'lib/xml/xpath.rb', line 2499

def namespaces
  []
end

#nodeObject



2473
2474
2475
# File 'lib/xml/xpath.rb', line 2473

def node
  self
end

#node_typeObject



2507
2508
2509
# File 'lib/xml/xpath.rb', line 2507

def node_type
  nil
end

#parentObject



2481
2482
2483
# File 'lib/xml/xpath.rb', line 2481

def parent
  nil
end

#qualified_nameObject



2515
2516
2517
# File 'lib/xml/xpath.rb', line 2515

def qualified_name
  name_localpart
end

#rootObject



2477
2478
2479
# File 'lib/xml/xpath.rb', line 2477

def root
  nil
end

#select_id(*ids) ⇒ Object

Raises:



2531
2532
2533
# File 'lib/xml/xpath.rb', line 2531

def select_id(*ids)
  raise XPath::Error, "selection by ID is not supported"
end

#string_valueObject



2523
2524
2525
# File 'lib/xml/xpath.rb', line 2523

def string_value
  ''
end