Sha256: 15412e3fc0878bbeec001fce59be97e92b30974c2d53db549c8962499d289f1b

Contents?: true

Size: 688 Bytes

Versions: 13

Compression:

Stored size: 688 Bytes

Contents

module Relaton
  class Processor
    attr_reader :short
    attr_reader :prefix
    attr_reader :defaultprefix
    attr_reader :idtype

    def initialize
      raise "This is an abstract class!"
    end

    def get(_code, _date, _opts)
      raise "This is an abstract class!"
    end

    def from_xml(_xml)
      raise "This is an abstract class!"
    end

    def hash_to_bib(_hash)
      raise "This is an abstract class!"
    end

    def grammar_hash
      raise "This is an abstract class!"
    end

    # Retuns default number of workers. Should be overraded by childred classes if need.
    #
    # @return [Integer] nuber of wokrers
    def threads
      10
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
relaton-1.9.0 lib/relaton/processor.rb
relaton-1.8.pre4 lib/relaton/processor.rb
relaton-1.8.pre3 lib/relaton/processor.rb
relaton-1.8.pre2 lib/relaton/processor.rb
relaton-1.8.1 lib/relaton/processor.rb
relaton-1.8.0 lib/relaton/processor.rb
relaton-1.7.9 lib/relaton/processor.rb
relaton-1.7.8 lib/relaton/processor.rb
relaton-1.7.7 lib/relaton/processor.rb
relaton-1.7.pre7 lib/relaton/processor.rb
relaton-1.7.6 lib/relaton/processor.rb
relaton-1.7.5 lib/relaton/processor.rb
relaton-1.7.4 lib/relaton/processor.rb