Method: Delorean::Ruby::Whitelists::Matchers::Method#initialize
- Defined in:
- lib/delorean/ruby/whitelists/matchers/method.rb
#initialize(method_name:, match_to: nil) {|_self| ... } ⇒ Method
Returns a new instance of Method.
15 16 17 18 19 20 21 22 |
# File 'lib/delorean/ruby/whitelists/matchers/method.rb', line 15 def initialize(method_name:, match_to: nil) @method_name = method_name @match_to = match_to @arguments_matchers = [] @arguments_matchers_hash = {} yield self if block_given? end |