Class: RShade::Filter::Default
Constant Summary collapse
- RUBY_VERSION_PATTERN =
/ruby-[0-9.]*/
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.create ⇒ Object
6 7 8 |
# File 'lib/rshade/filter/default.rb', line 6 def self.create new.create end |
Instance Method Details
#create ⇒ Object
10 11 12 |
# File 'lib/rshade/filter/default.rb', line 10 def create [create_exclude] end |
#create_exclude ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'lib/rshade/filter/default.rb', line 14 def create_exclude filter = ExcludePathFilter.new filter.config do |paths| excluded_paths.each do |path| paths << path end end end |
#excluded_paths ⇒ Object
23 24 25 |
# File 'lib/rshade/filter/default.rb', line 23 def excluded_paths [ENV['GEM_PATH'].split(':'), RUBY_VERSION_PATTERN, /internal/].flatten.compact end |