lib/csl/style.rb in csl-1.0.0.pre10 vs lib/csl/style.rb in csl-1.0.0.pre11

- old
+ new

@@ -3,27 +3,18 @@ class Style < Node types << CSL::Info << CSL::Locale @default = :apa - @root = File.expand_path('../../../vendor/styles', __FILE__).freeze + @root = '/usr/local/share/csl/styles'.freeze @extension = '.csl'.freeze @prefix = '' class << self include Loader attr_accessor :default - - def parse(data) - node = CSL.parse!(data, self) - - raise ParseError, "root node is not a style: #{node.inspect}" unless - node.is_a?(self) - - node - end def load(input = Style.default) super end end \ No newline at end of file