Sha256: 356a4ddccbf4bc1d6590030aa065f509bb7a025989603b891ebaa52c522135e0
Contents?: true
Size: 373 Bytes
Versions: 44
Compression:
Stored size: 373 Bytes
Contents
module Relaton module Render module IHO class Parse < ::Relaton::Render::Parse def uri(doc) uri = nil %w(src).each do |t| uri = doc.link.detect { |u| u.type == t } and break end uri ||= doc.link.first return nil unless uri uri.content.to_s end end end end end
Version data entries
44 entries across 44 versions & 1 rubygems