Sha256: a0409781b44214616c629f57fd3227390a9d31331cfc78bba2d17435ba3e3e21
Contents?: true
Size: 455 Bytes
Versions: 14
Compression:
Stored size: 455 Bytes
Contents
module IndentationHelpers # Used for getting the faked file contexts from the indentation_cases.rb file. # # @param [String] file_name The name of the fake file to get. # @return [String] def get_file_contents(file_name) path_chunks = file_name.split('/') const_name = path_chunks.first(2).each { |c| c.upcase! }.join("_") const = Kernel.const_get(const_name) const[path_chunks.last.to_sym] end end World(IndentationHelpers)
Version data entries
14 entries across 14 versions & 1 rubygems