0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

requireするケース

Posted at
# frozen_string_literal: true

+require 'net/http'
+require 'uri'
+require 'mini_magick'
+require 'fileutils'

上記のようにrequireするケースは、Rubyに標準で存在しない場合など、あえて書かなければいけない場合のみ記載する。

Gemfileに記載されたGemは、Bundlerによって自動的にロードされるため、手動でrequireする必要はない。既に入っている場合は不要。

それ以外は基本的にはRubyの標準機能であるため記載不要。

0
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?