1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionview/lib/action_view/template/sources/file.rb
2019-04-04 15:07:14 -07:00

17 lines
271 B
Ruby

# frozen_string_literal: true
module ActionView
class Template
module Sources
class File
def initialize(filename)
@filename = filename
end
def to_s
::File.binread @filename
end
end
end
end
end