Class: RSpec::Paramz::NamedProc

Inherits:
Proc
  • Object
show all
Defined in:
lib/rspec/paramz/named_proc.rb

Instance Method Summary collapse

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_sObject Also known as: inspect



9
10
11
# File 'lib/rspec/paramz/named_proc.rb', line 9

def to_s
  "{ #{@name} }"
end