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

Inherits:
Object
  • Object
show all
Defined in:
lib/action_view/template/sources/file.rb

Instance Method Summary collapse

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_sObject



11
12
13
# File 'lib/action_view/template/sources/file.rb', line 11

def to_s
  ::File.binread @filename
end