123456789_123456789_123456789_123456789_123456789_

Class: ActionView::Template::Sources::File

Relationships & Source Files
Inherits: Object
Defined in: actionview/lib/action_view/template/sources/file.rb

Class Method Summary

Instance Method Summary

Constructor Details

.new(filename) ⇒ File

[ GitHub ]

  
# 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