Skip to content

Commit cdec16a

Browse files
committed
Use autoload for RDF::CGI after all.
1 parent becaf99 commit cdec16a

5 files changed

Lines changed: 3 additions & 6 deletions

File tree

bin/rdf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/usr/bin/env ruby
22
$:.unshift(File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib')))
33
require 'rubygems'
4-
require 'rdf/cli'
54

65
options = RDF::CLI.options(ARGV)
76

lib/rdf.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ module RDF
7676
# Utilities
7777
autoload :Util, 'rdf/util'
7878

79+
# CLI
80+
autoload :CLI, 'rdf/cli'
81+
7982
##
8083
# Alias for `RDF::Resource.new`.
8184
#

lib/rdf/reader.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
# frozen_string_literal: true
2-
require 'rdf/cli'
3-
42
module RDF
53
##
64
# The base class for RDF parsers.

lib/rdf/vocab/writer.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
require 'rdf'
22
require 'rdf/vocabulary'
33
require 'cgi'
4-
require 'rdf/cli'
54

65
module RDF
76
##

lib/rdf/writer.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
# -*- encoding: utf-8 -*-
2-
require 'rdf/cli'
3-
42
module RDF
53
##
64
# The base class for RDF serializers.

0 commit comments

Comments
 (0)