Class: Bauk::Gen::Contents::StringContent

Inherits:
BaseContent
  • Object
show all
Defined in:
lib/bauk/gen/contents/string_content.rb

Instance Method Summary collapse

Constructor Details

#initialize(opts) ⇒ StringContent

Returns a new instance of StringContent.



9
10
11
12
# File 'lib/bauk/gen/contents/string_content.rb', line 9

def initialize(opts)
  super(opts)
  @string = File.new(opts[:string])
end

Instance Method Details

#contentObject



13
14
15
# File 'lib/bauk/gen/contents/string_content.rb', line 13

def content
  @string
end