module Html2rss module AttributePostProcessors class Substring def initialize(value, options, _item) @value = value @options = options end def get ending = @options['end'].to_i.positive? ? @options['end'].to_i : @value.length @value[@options['start'].to_i..ending] end end end end