diff options
author | utilum <oz@utilum.com> | 2018-02-22 00:40:21 +0100 |
---|---|---|
committer | utilum <oz@utilum.com> | 2018-02-22 00:54:40 +0100 |
commit | 6f6fe69ea8d2072c49ab7d56b32f19ea27805962 (patch) | |
tree | bdd0e484b93d216b590c435383075d9876eb5d64 /guides/rails_guides | |
parent | 63d530c5e68a8cf53603744789f53ccbc7ac1a0e (diff) | |
download | rails-6f6fe69ea8d2072c49ab7d56b32f19ea27805962.tar.gz rails-6f6fe69ea8d2072c49ab7d56b32f19ea27805962.tar.bz2 rails-6f6fe69ea8d2072c49ab7d56b32f19ea27805962.zip |
We should call methods with `.method_name` not `::method_name`.
Found several instances.
Follow up on 63d530c5e68a8cf53603744789f53ccbc7ac1a0e
Diffstat (limited to 'guides/rails_guides')
-rw-r--r-- | guides/rails_guides/kindle.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/guides/rails_guides/kindle.rb b/guides/rails_guides/kindle.rb index 87a369a15a..5c4f7d159c 100644 --- a/guides/rails_guides/kindle.rb +++ b/guides/rails_guides/kindle.rb @@ -58,9 +58,9 @@ module Kindle end def generate_sections(html_pages) - FileUtils::rm_rf("sections/") + FileUtils.rm_rf("sections/") html_pages.each_with_index do |page, section_idx| - FileUtils::mkdir_p("sections/%03d" % section_idx) + FileUtils.mkdir_p("sections/%03d" % section_idx) doc = Nokogiri::HTML(File.open(page)) title = doc.at("title").inner_text.gsub("Ruby on Rails Guides: ", "") title = page.capitalize.gsub(".html", "") if title.strip == "" |