Method: Cucumber::Runtime::NormalisedEncodingFile#initialize

Defined in:
lib/cucumber/runtime.rb

#initialize(path) ⇒ NormalisedEncodingFile

Returns a new instance of NormalisedEncodingFile.


160
161
162
163
164
165
166
167
# File 'lib/cucumber/runtime.rb', line 160

def initialize(path)
  @file = File.new(path)
  set_encoding
rescue Errno::EACCES => e
  raise FileNotFoundException.new(e, File.expand_path(path))
rescue Errno::ENOENT
  raise FeatureFolderNotFoundException, path
end