Skip to content

Commit

Permalink
#7 - filter out classes which are not meant to be used directly
Browse files Browse the repository at this point in the history
  • Loading branch information
rarruda committed Jul 5, 2018
1 parent 99af7b4 commit 2966aaf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/unleash.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ module Unleash

STRATEGIES = Unleash::Strategy.constants
.select { |c| Unleash::Strategy.const_get(c).is_a? Class }
.select { |c| !['NotImplemented', 'Base'].include?(c.to_s) }
.map { |c|
lowered_c = c.to_s
lowered_c[0] = lowered_c[0].downcase
Expand Down

0 comments on commit 2966aaf

Please sign in to comment.