Skip to content

Commit

Permalink
Move Ocran module definition from bin/ocran.rb to lib/ocran.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
shinokaro committed Aug 1, 2024
1 parent 2c8d1dc commit b885e07
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
4 changes: 0 additions & 4 deletions bin/ocran
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
#!/usr/bin/env ruby
# encoding: UTF-8

module Ocran
singleton_class.attr_accessor :option
end # module Ocran

load File.expand_path("../lib/ocran/runner.rb", __dir__)
if File.basename(__FILE__) == File.basename($PROGRAM_NAME)
load Ocran::Runner.new.run
Expand Down
1 change: 1 addition & 0 deletions lib/ocran.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
require_relative "ocran/version"

module Ocran
singleton_class.attr_accessor :option
end
1 change: 1 addition & 0 deletions lib/ocran/command_output.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true
load File.expand_path("../ocran.rb", __dir__)

module Ocran
module CommandOutput
Expand Down
1 change: 1 addition & 0 deletions lib/ocran/runner.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true
load File.expand_path("../ocran.rb", __dir__)

module Ocran
class Runner
Expand Down

0 comments on commit b885e07

Please sign in to comment.