Class: File

Inherits:
Object
  • Object
show all
Defined in:
lib/jekyll/core_ext.rb

Overview

Ruby 1.8’s File.read don’t support option. read_with_options ignore optional parameter for 1.8, and act as alias for 1.9 or later.

Class Method Summary collapse

Class Method Details

.read_with_options(path, opts = {}) ⇒ Object



78
79
80
# File 'lib/jekyll/core_ext.rb', line 78

def self.read_with_options(path, opts = {})
  self.read(path)
end