Sha256: d2c5a9e489cb9659a855c4766a34c81a2bda140430af21a3401a74af7fb32f42

Contents?: true

Size: 741 Bytes

Versions: 7

Compression:

Stored size: 741 Bytes

Contents

# frozen_string_literal:true

require 'rfcbib/scrapper'

module RfcBib
  # RFC bibliography module
  module RfcBibliography
    class << self
      # @param code [String] the ISO standard Code to look up (e..g "ISO 9000")
      # @return [IsoBibItem::BibliographicItem]
      def search(text)
        Scrapper.scrape_page text
      end

      # @param code [String] the ISO standard Code to look up (e..g "ISO 9000")
      # @param year [String] the year the standard was published (optional)
      # @param opts [Hash] options; restricted to :all_parts if all-parts reference is required
      # @return [IsoBibItem::BibliographicItem] Relaton of reference
      def get(code, _year, _opts)
        search code
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rfcbib-0.3.1 lib/rfcbib/rfc_bibliography.rb
rfcbib-0.3.0 lib/rfcbib/rfc_bibliography.rb
rfcbib-0.2.4 lib/rfcbib/rfc_bibliography.rb
rfcbib-0.2.3 lib/rfcbib/rfc_bibliography.rb
rfcbib-0.2.2 lib/rfcbib/rfc_bibliography.rb
rfcbib-0.2.1 lib/rfcbib/rfc_bibliography.rb
rfcbib-0.2.0 lib/rfcbib/rfc_bibliography.rb