class Sprockets::FileReader
Experimental RBS support (using type sampling data from the type_fusion
project).
# sig/sprockets/file_reader.rbs class Sprockets::FileReader def self.call: (Hash input) -> Hash end
memory and passes it along as ‘input`.
Internal: The first processor in the pipeline that reads the file into
def self.call(input)
Experimental RBS support (using type sampling data from the type_fusion
project).
def self.call: (data | String | metadata | dependencies | Set | environment | Sprockets::CachedEnvironment | cache | Sprockets::Cache | uri | String | filename | String | load_path | String | name | String | content_type | String input) -> data | String | dependencies | Set
This signature was generated using 1 sample from 1 application.
def self.call(input) env = input[:environment] data = env.read_file(input[:filename], input[:content_type]) dependencies = Set.new(input[:metadata][:dependencies]) dependencies += [env.build_file_digest_uri(input[:filename])] { data: data, dependencies: dependencies } end