Class: FileContents

Inherits:
GenericContents show all
Defined in:
lib/el4r/el4r-sub.rb

Overview

str = FileContents.new(filename)

Instance Attribute Summary

Attributes inherited from GenericContents

#to_s

Instance Method Summary collapse

Constructor Details

#initialize(filename) ⇒ FileContents

Returns a new instance of FileContents.



827
828
829
# File 'lib/el4r/el4r-sub.rb', line 827

def initialize(filename)
  @to_s = File.read(filename)
end