lib/csl.rb in csl-1.0.0.pre1 vs lib/csl.rb in csl-1.0.0.pre2
- old
+ new
@@ -27,11 +27,11 @@
require 'csl/locale/style_options'
require 'csl/style'
require 'csl/style/bibliography'
require 'csl/style/citation'
-require 'csl/style/conditional'
+require 'csl/style/choose'
require 'csl/style/date'
require 'csl/style/group'
require 'csl/style/label'
require 'csl/style/layout'
require 'csl/style/macro'
@@ -49,6 +49,14 @@
def parse!(*arguments)
Parser.instance.parse!(*arguments)
end
+ def validate(node)
+ Schema.validate(node)
+ end
+
+ def valid?(node)
+ Schema.valid?(node)
+ end
+
end
\ No newline at end of file