Sha256: 65d549d4885ed52d1d90e19dc3a5d3587611106217d53340e7f55dca10bd976c
Contents?: true
Size: 455 Bytes
Versions: 2
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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tailor-1.4.1 | features/support/world.rb |
tailor-1.4.0 | features/support/world.rb |