Sha256: cf5e84a6e84ffc1293895c51eff47b03eca7d55bfb1dc3b90afba4bf328ed069

Contents?: true

Size: 510 Bytes

Versions: 6

Compression:

Stored size: 510 Bytes

Contents

module Rack
  module DevMark
    module Theme
      class Base
        def initialize(*args)
          raise RuntimeError, 'Abstract class can not be instantiated' if self.class == Rack::DevMark::Theme::Base
        end

        def insert_into(html, env, revision)

        end

        private

        def stylesheet_link_tag(path)
          %Q~<style>#{::File.open(::File.join(::File.dirname(__FILE__), '../../../../vendor/assets/stylesheets', path)).read}</style>~
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rack-dev-mark-0.2.0 lib/rack/dev-mark/theme/base.rb
rack-dev-mark-0.1.5 lib/rack/dev-mark/theme/base.rb
rack-dev-mark-0.1.4 lib/rack/dev-mark/theme/base.rb
rack-dev-mark-0.1.3 lib/rack/dev-mark/theme/base.rb
rack-dev-mark-0.1.2 lib/rack/dev-mark/theme/base.rb
rack-dev-mark-0.1.0 lib/rack/dev-mark/theme/base.rb