Sha256: 556985db71f7d0b8120552af357e788ddbba753ab659d06cb647500d8c14b5fc
Contents?: true
Size: 526 Bytes
Versions: 35
Compression:
Stored size: 526 Bytes
Contents
module GitHub module Markup class Implementation attr_reader :regexp def initialize(regexp) @regexp = regexp end def load # no-op by default end def render(content) raise NotImplementedError, "subclasses of GitHub::Markup::Implementation must define #render" end def match?(filename) file_ext_regexp =~ filename end private def file_ext_regexp @file_ext_regexp ||= /\.(#{regexp})\z/ end end end end
Version data entries
35 entries across 35 versions & 2 rubygems