method
build_description_from
1.3.1 -
Show latest stable
-
0 notes -
Class: Spec::Example::ExampleGroupMethods
- 1.1.4
- 1.1.12
- 1.2.0
- 1.2.8 (0)
- 1.3.0 (0)
- 1.3.1 (0)
- What's this?
build_description_from(*args)
public
Hide source
# File lib/spec/example/example_group_methods.rb, line 8 def build_description_from(*args) text = args.inject("") do |description, arg| description << " " unless (description == "" || arg.to_s =~ /^(\s|\.|#)/) description << arg.to_s end text == "" ? nil : text end