Method: REXML::AttlistDecl#include?

Defined in:
lib/rexml/attlistdecl.rb

#include?(key) ⇒ Boolean

Whether an attlist declaration includes the given attribute definition

if attlist_decl.include? "xmlns:foobar"

Returns:

  • (Boolean)


44
45
46
# File 'lib/rexml/attlistdecl.rb', line 44

def include?(key)
  @pairs.keys.include? key
end