Sha256: c100534d2b5738a0cf17725e65e3512d07804849a99a9eacd597c753745d1a4b

Contents?: true

Size: 743 Bytes

Versions: 7

Compression:

Stored size: 743 Bytes

Contents

# frozen_string_literal:true

require 'ietfbib/scrapper'

module IETFBib
  # 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
ietfbib-0.4.6 lib/ietfbib/rfc_bibliography.rb
ietfbib-0.4.5 lib/ietfbib/rfc_bibliography.rb
ietfbib-0.4.4 lib/ietfbib/rfc_bibliography.rb
ietfbib-0.4.3 lib/ietfbib/rfc_bibliography.rb
ietfbib-0.4.2 lib/ietfbib/rfc_bibliography.rb
ietfbib-0.4.1 lib/ietfbib/rfc_bibliography.rb
ietfbib-0.4.0 lib/ietfbib/rfc_bibliography.rb