Sha256: e2bfe2d41c72b7279f45139b6643637fbf9d1c091c4e5268435558d0cdcc7214
Contents?: true
Size: 442 Bytes
Versions: 3
Compression:
Stored size: 442 Bytes
Contents
module GitHub module Markup class Implementation attr_reader :languages def initialize(languages) @languages = languages end def load # no-op by default end def render(content) raise NotImplementedError, "subclasses of GitHub::Markup::Implementation must define #render" end def match?(language) languages.include? language end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
github-markup-1.4.8 | lib/github/markup/implementation.rb |
github-markup-1.4.7 | lib/github/markup/implementation.rb |
github-markup-1.4.6 | lib/github/markup/implementation.rb |