Skip to content

Commit

Permalink
Merge a2ab4b9 into 684b019
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyCTHsu committed Sep 14, 2018
2 parents 684b019 + a2ab4b9 commit 2053043
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions lib/stoplight.rb
@@ -1,8 +1,4 @@
# coding: utf-8

module Stoplight # rubocop:disable Style/Documentation
end

require 'stoplight/version'

require 'stoplight/color'
Expand Down Expand Up @@ -32,7 +28,13 @@ module Stoplight # rubocop:disable Style/Documentation
require 'stoplight/light/runnable'
require 'stoplight/light'

# @see Stoplight::Light#initialize
def Stoplight(name, &code) # rubocop:disable Style/MethodName
Stoplight::Light.new(name, &code)
module Stoplight # rubocop:disable Style/Documentation
module_function

# @see Stoplight::Light#initialize
def Stoplight(name, &code) # rubocop:disable Style/MethodName
Light.new(name, &code)
end
end

include Stoplight

0 comments on commit 2053043

Please sign in to comment.