Class: ActionView::Template::Sources::File
Relationships & Source Files | |
Inherits: | Object |
Defined in: | actionview/lib/action_view/template/sources/file.rb |
Class Method Summary
- .new(filename) ⇒ File constructor
Instance Method Summary
Constructor Details
.new(filename) ⇒ File
# File 'actionview/lib/action_view/template/sources/file.rb', line 7
def initialize(filename) @filename = filename end
Instance Method Details
#to_s
[ GitHub ]# File 'actionview/lib/action_view/template/sources/file.rb', line 11
def to_s ::File.binread @filename end