Class: ActionView::Template::Sources::File
- Inherits:
-
Object
- Object
- ActionView::Template::Sources::File
- Defined in:
- lib/action_view/template/sources/file.rb
Instance Method Summary collapse
-
#initialize(filename) ⇒ File
constructor
A new instance of File.
- #to_s ⇒ Object
Constructor Details
#initialize(filename) ⇒ File
Returns a new instance of File.
7 8 9 |
# File 'lib/action_view/template/sources/file.rb', line 7 def initialize(filename) @filename = filename end |
Instance Method Details
#to_s ⇒ Object
11 12 13 |
# File 'lib/action_view/template/sources/file.rb', line 11 def to_s ::File.binread @filename end |