Class: CodeDrivenDevelopment::Stubber::ConstStubber

Inherits:
AbstractStubber show all
Defined in:
lib/code_driven_development/stubber/const_stubber.rb

Instance Method Summary collapse

Methods inherited from AbstractStubber

#befores, #body, #doubles, #initialize, #method_name

Constructor Details

This class inherits a constructor from CodeDrivenDevelopment::Stubber::AbstractStubber

Instance Method Details

#human_nameObject



8
9
10
# File 'lib/code_driven_development/stubber/const_stubber.rb', line 8

def human_name
  "#{receiver_value}.#{method_name}"
end

#receiver_valueObject



4
5
6
# File 'lib/code_driven_development/stubber/const_stubber.rb', line 4

def receiver_value
  receiver.value
end