method
build_name_from_options
1.2.8 -
Show latest stable
-
0 notes -
Class: Spec::Mocks::Mock
- 1.1.4
- 1.1.12
- 1.2.0
- 1.2.8 (0)
- 1.3.0
- 1.3.1
- What's this?
build_name_from_options(options)
private
Hide source
# File lib/spec/mocks/mock.rb, line 59 def build_name_from_options(options) vals = options.inject([]) {|coll, pair| coll << "#{pair.first}: #{pair.last.inspect}"} @name = '{' + vals.join(', ') + '}' end