Module: Spec::DSL::Description::ClassMethods
- Included in:
- Spec::DSL::Description
- Defined in:
- lib/spec/dsl/description.rb
Instance Method Summary collapse
Instance Method Details
#generate_description(*args) ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/spec/dsl/description.rb', line 5 def generate_description(*args) description = args.shift.to_s unless args.empty? suffix = args.shift.to_s description << " " unless suffix =~ /^\s|\.|#/ description << suffix end description end |