Sha256: b3568e9fc5e65be481e9ff9948a8baa517d726caaaa3ba8ae084b9d81f7c780e
Contents?: true
Size: 348 Bytes
Versions: 1
Compression:
Stored size: 348 Bytes
Contents
module Html2rss module AttributePostProcessors class Substring def initialize(value, options, _item) @value = value @options = options end def get ending = @options.fetch('end', false) ? @options['end'].to_i : @value.length @value[@options['start'].to_i..ending] end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
html2rss-0.3.3 | lib/html2rss/attribute_post_processors/substring.rb |