Skip to content

Commit

Permalink
Stop polluting the main namespace with Rsec helpers.
Browse files Browse the repository at this point in the history
  • Loading branch information
simonwo committed Sep 15, 2020
1 parent 36d25bd commit ae79ab7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/dbml.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
require 'rsec'
include Rsec::Helpers

module DBML
Column = Struct.new :name, :type, :settings
Expand All @@ -13,6 +12,8 @@ module DBML
ProjectDef = Struct.new :name, :notes, :settings

module Parser
extend Rsec::Helpers

def self.long_or_short p
(':'.r >> p) | ('{'.r >> p << '}'.r)
end
Expand Down

0 comments on commit ae79ab7

Please sign in to comment.