Class: Parametric::Policies::MatchPolicy

Inherits:
Policy
  • Object
show all
Defined in:
lib/parametric/policies.rb

Instance Method Summary collapse

Methods inherited from Policy

#initialize, #wrap

Constructor Details

This class inherits a constructor from Parametric::Policies::Policy

Instance Method Details

#valueObject



76
77
78
79
80
# File 'lib/parametric/policies.rb', line 76

def value
  decorated.value.each_with_object([]){|a,arr| 
    arr << a if a.to_s =~ options[:match]
  }
end