Class: Rack::DevMark::Theme::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/rack/dev-mark/theme/base.rb

Direct Known Subclasses

GithubForkRibbon, Tag

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Base

Returns a new instance of Base.

Raises:



7
8
9
# File 'lib/rack/dev-mark/theme/base.rb', line 7

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

Instance Attribute Details

#envObject (readonly)

Returns the value of attribute env.



5
6
7
# File 'lib/rack/dev-mark/theme/base.rb', line 5

def env
  @env
end

#revisionObject (readonly)

Returns the value of attribute revision.



5
6
7
# File 'lib/rack/dev-mark/theme/base.rb', line 5

def revision
  @revision
end

#timestampObject (readonly)

Returns the value of attribute timestamp.



5
6
7
# File 'lib/rack/dev-mark/theme/base.rb', line 5

def timestamp
  @timestamp
end

Instance Method Details

#insert_into(html) ⇒ Object



17
18
19
# File 'lib/rack/dev-mark/theme/base.rb', line 17

def insert_into(html)

end

#setup(env, revision, timestamp) ⇒ Object



11
12
13
14
15
# File 'lib/rack/dev-mark/theme/base.rb', line 11

def setup(env, revision, timestamp)
  @env = env
  @revision = revision
  @timestamp = timestamp
end