Sha256: ac29672a5830fa0c71ac515b107858392f1f82eeba33d7cdeee6d42c6e61398b
Contents?: true
Size: 469 Bytes
Versions: 22
Compression:
Stored size: 469 Bytes
Contents
# DEPRECATED. Just write the logic into a custom Decorator yourself. # See wiki on decorators. require 'openurl' # A Decorator that will make #to_openurl refuse to construct # an openurl from individual elements, it'll use the #openurl_kev_co # or nothing. module BentoSearch::OnlyPremadeOpenurl def to_openurl if self.openurl_kev_co return OpenURL::ContextObject.new_from_kev( self.openurl_kev_co ) else return nil end end end
Version data entries
22 entries across 22 versions & 1 rubygems