lib/nanoc/extra/file_proxy.rb in nanoc-3.7.4 vs lib/nanoc/extra/file_proxy.rb in nanoc-3.7.5

- old
+ new

@@ -1,12 +1,10 @@ # encoding: utf-8 module Nanoc::Extra - # @deprecated Create a File instance directly and use that instead. class FileProxy - instance_methods.each { |m| undef_method m unless m =~ /^__/ || m.to_s == 'object_id' } @@deprecation_warning_shown = false def initialize(path) @@ -30,11 +28,9 @@ end private def file_instance_methods - @@file_instance_methods ||= Set.new(File.instance_methods.map { |m| m.to_sym }) + @@file_instance_methods ||= Set.new(File.instance_methods.map(&:to_sym)) end - end - end