Class: Docco::Theme::Static

Inherits:
Object
  • Object
show all
Defined in:
lib/docco/theme.rb

Instance Method Summary collapse

Constructor Details

#initialize(path, content) ⇒ Static

Returns a new instance of Static.



11
12
13
14
# File 'lib/docco/theme.rb', line 11

def initialize(path, content)
  @path = path
  @content = content.respond_to?(:read) ? content : StringIO.new(content)
end