Sha256: 4b15b0ebdb2bb2db32d7ab15231a58aed0857ce6f20552d4da5d0ec3717f76d2
Contents?: true
Size: 631 Bytes
Versions: 1
Compression:
Stored size: 631 Bytes
Contents
module Html2rss module AttributePostProcessors ## # Returns the URI as String. # # Imagine this HTML structure: # # <span>http://why-not-use-a-link.uh</span> # # YAML usage example: # # selectors: # link: # selector: span # extractor: text # post_process: # name: parse_uri # # Would return: # 'http://why-not-use-a-link.uh' class ParseUri def initialize(value, _env) @value = value end ## # @return [String] def get URI(@value).to_s end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
html2rss-0.8.0 | lib/html2rss/attribute_post_processors/parse_uri.rb |