Skip to content

Commit

Permalink
Add methods to read the minOccurs and maxOccurs attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
jmateus committed Nov 24, 2023
1 parent c434953 commit 78c996d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/libxml/ruby_xml_version.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* Don't nuke this block! It is used for automatically updating the
* versions below. VERSION = string formatting, VERNUM = numbered
* version for inline testing: increment both or none at all.*/
#define RUBY_LIBXML_VERSION "3.2.1.2"
#define RUBY_LIBXML_VERNUM 3212
#define RUBY_LIBXML_VERSION "3.2.1.3"
#define RUBY_LIBXML_VERNUM 3213
#define RUBY_LIBXML_VER_MAJ 3
#define RUBY_LIBXML_VER_MIN 2
#define RUBY_LIBXML_VER_MIC 1
Expand Down
8 changes: 8 additions & 0 deletions lib/libxml/schema/element.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ def array?
def elements
type.elements
end

def min_occurs
@min
end

def max_occurs
@max
end
end
end
end

0 comments on commit 78c996d

Please sign in to comment.