class ActionView::Template::Sources::File

Experimental RBS support (using type sampling data from the type_fusion project).

# sig/action_view/template/sources/file.rbs

class ActionView::Template::Sources::File
  def initialize: (String filename) -> void
  def to_s: () -> String
end

def initialize(filename)

Experimental RBS support (using type sampling data from the type_fusion project).

def initialize: (String filename) -> void

This signature was generated using 1 sample from 1 application.

def initialize(filename)
  @filename = filename
end

def to_s

Experimental RBS support (using type sampling data from the type_fusion project).

def to_s: () -> String

This signature was generated using 2 samples from 1 application.

def to_s
  ::File.binread @filename
end