Method: HashConditions::ModuleMatcher#initialize

Defined in:
lib/hash_conditions/module_matcher.rb

#initialize(matcher, replacement, operations = []) ⇒ ModuleMatcher

Returns a new instance of ModuleMatcher.



5
6
7
8
9
10
11
# File 'lib/hash_conditions/module_matcher.rb', line 5

def initialize matcher, replacement, operations = []
  operations = [ :parse, :match ] if operations.empty?

  @matcher = matcher
  @replacement = replacement
  @operations = operations
end