mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
17 lines
271 B
Ruby
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
|