Module: RSpec::Parameterized::Core::HelperMethods

Defined in:
lib/rspec/parameterized/core/helper_methods.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.applicable?(arg) ⇒ Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/rspec/parameterized/core/helper_methods.rb', line 15

def self.applicable?(arg)
  arg.is_a? Arg
end

Instance Method Details

#lazy(&block) ⇒ Object



11
12
13
# File 'lib/rspec/parameterized/core/helper_methods.rb', line 11

def lazy(&block)
  LazyArg.new(&block)
end

#ref(symbol) ⇒ Object



7
8
9
# File 'lib/rspec/parameterized/core/helper_methods.rb', line 7

def ref(symbol)
  RefArg.new(symbol)
end