class Missingly::ArrayBlockMatcher
Attributes
array[R]
method_block[R]
options[R]
Public Class Methods
new(array, options, method_block)
click to toggle source
# File lib/missingly/array_block_matcher.rb, line 5 def initialize(array, options, method_block) @array, @method_block, @options = array, method_block, options end
Public Instance Methods
matchable()
click to toggle source
# File lib/missingly/array_block_matcher.rb, line 17 def matchable; array; end
setup_method_name_args(method_name)
click to toggle source
# File lib/missingly/array_block_matcher.rb, line 13 def setup_method_name_args(method_name) method_name end
should_respond_to?(instance, name)
click to toggle source
# File lib/missingly/array_block_matcher.rb, line 9 def should_respond_to?(instance, name) array.include?(name) end