class Missingly::RegexBlockMatcher

Attributes

method_block[R]
options[R]
regex[R]

Public Class Methods

new(regex, options, method_block) click to toggle source
# File lib/missingly/regex_block_matcher.rb, line 5
def initialize(regex, options, method_block)
  @regex, @options, @method_block = regex, options, method_block
end

Public Instance Methods

matchable() click to toggle source
# File lib/missingly/regex_block_matcher.rb, line 17
def matchable; regex; end
setup_method_name_args(method_name) click to toggle source
# File lib/missingly/regex_block_matcher.rb, line 13
def setup_method_name_args(method_name)
  regex.match method_name
end
should_respond_to?(instance, name) click to toggle source
# File lib/missingly/regex_block_matcher.rb, line 9
def should_respond_to?(instance, name)
  regex.match(name)
end