Class: Bauk::Gen::Contents::StringContent
- Inherits:
-
BaseContent
- Object
- BaseContent
- Bauk::Gen::Contents::StringContent
- Defined in:
- lib/bauk/gen/contents/string_content.rb
Instance Method Summary collapse
- #content ⇒ Object
-
#initialize(opts) ⇒ StringContent
constructor
A new instance of StringContent.
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
#content ⇒ Object
13 14 15 |
# File 'lib/bauk/gen/contents/string_content.rb', line 13 def content @string end |