Sha256: 35286f6726dcd6f39c1b3a1c357d874c9b6023704c052fd1a0a270e84dcc156d

Contents?: true

Size: 242 Bytes

Versions: 11

Compression:

Stored size: 242 Bytes

Contents

# encoding: UTF-8

module LibXML
  module XML
    class Schema::Attribute
      REQUIRED = 1
      OPTIONAL = 2

      def default
        node['default']
      end

      def required?
        occurs == REQUIRED
      end

    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
libxml-ruby-2.9.0-x64-mingw32 lib/libxml/schema/attribute.rb
libxml-ruby-2.9.0 lib/libxml/schema/attribute.rb
libxml-ruby-2.8.0 lib/libxml/schema/attribute.rb
libxml-ruby-2.7.0-x86-mingw32 lib/libxml/schema/attribute.rb
libxml-ruby-2.7.0 lib/libxml/schema/attribute.rb
libxml-ruby-2.6.0-x86-mingw32 lib/libxml/schema/attribute.rb
libxml-ruby-2.6.0 lib/libxml/schema/attribute.rb
libxml-ruby-2.5.0-x86-mingw32 lib/libxml/schema/attribute.rb
libxml-ruby-2.5.0 lib/libxml/schema/attribute.rb
libxml-ruby-2.4.0-x86-mingw32 lib/libxml/schema/attribute.rb
libxml-ruby-2.4.0 lib/libxml/schema/attribute.rb