class Bauk::Gen::Contents::FileContent
Attributes
file[R]
Public Class Methods
new(opts)
click to toggle source
Calls superclass method
Bauk::Gen::Contents::BaseContent::new
# File lib/bauk/gen/contents/file_content.rb, line 11 def initialize(opts) super(opts) @file = File.new(opts[:file]) end
Public Instance Methods
content()
click to toggle source
# File lib/bauk/gen/contents/file_content.rb, line 16 def content @file.read end