Class: RSpec::Paramz::NamedProc
- Inherits:
-
Proc
- Object
- Proc
- RSpec::Paramz::NamedProc
- Defined in:
- lib/rspec/paramz/named_proc.rb
Instance Method Summary collapse
-
#initialize(name, &block) ⇒ NamedProc
constructor
A new instance of NamedProc.
- #to_s ⇒ Object (also: #inspect)
Constructor Details
#initialize(name, &block) ⇒ NamedProc
Returns a new instance of NamedProc.
4 5 6 7 |
# File 'lib/rspec/paramz/named_proc.rb', line 4 def initialize(name, &block) @name = name super(&block) end |
Instance Method Details
#to_s ⇒ Object Also known as: inspect
9 10 11 |
# File 'lib/rspec/paramz/named_proc.rb', line 9 def to_s "{ #{@name} }" end |