Skip to content

Commit

Permalink
use autoload to load JSON, TOML and YAML loaders
Browse files Browse the repository at this point in the history
  • Loading branch information
taichi-ishitani committed Jun 7, 2024
1 parent 9394e90 commit 32de86c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/rggen/core.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@
require 'erubi'
require 'fileutils'
require 'forwardable'
require 'json'
require 'optparse'
require 'pathname'
require 'singleton'
require 'tomlrb'
require 'yaml'

autoload :JSON, 'json'
autoload :Psych, 'yaml'
autoload :Tomlrb, 'tomlrb'

require_relative 'core/version'

Expand Down

0 comments on commit 32de86c

Please sign in to comment.