Class: LibXML::XML::Schema::Namespaces

Inherits:
Array
  • Object
show all
Defined in:
lib/libxml/schema.rb

Instance Method Summary collapse

Instance Method Details

#find_by_href(href) ⇒ Object



48
49
50
# File 'lib/libxml/schema.rb', line 48

def find_by_href(href)
  find { |n| n.href == href }
end

#find_by_prefix(prefix) ⇒ Object



52
53
54
# File 'lib/libxml/schema.rb', line 52

def find_by_prefix(prefix)
  find { |n| n.prefix == prefix }
end