Sha256: 97ed336c22e3ad72ec4329a109bc25dee22cb5c70c137dd7494e518e4f456c15
Contents?: true
Size: 483 Bytes
Versions: 19
Compression:
Stored size: 483 Bytes
Contents
module Deface module Sources class Copy < Source def self.execute(override) copy = override.args[:copy] if copy.is_a? Hash range = Deface::Matchers::Range.new('Copy', copy[:start], copy[:end]).matches(override.parsed_document).first Deface::Parser.undo_erb_markup! range.map(&:to_s).join else Deface::Parser.undo_erb_markup! override.parsed_document.css(copy).first.to_s.clone end end end end end
Version data entries
19 entries across 19 versions & 1 rubygems