Class: Test::Spec::Empty
- Defined in:
- lib/test/spec.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#initialize(name) ⇒ Empty
constructor
A new instance of Empty.
- #long_display ⇒ Object
- #short_display ⇒ Object
- #single_character_display ⇒ Object
Constructor Details
#initialize(name) ⇒ Empty
Returns a new instance of Empty.
553 554 555 |
# File 'lib/test/spec.rb', line 553 def initialize(name) @name = name end |
Instance Method Details
#long_display ⇒ Object
565 566 567 |
# File 'lib/test/spec.rb', line 565 def long_display @name + " is empty" end |
#short_display ⇒ Object
561 562 563 |
# File 'lib/test/spec.rb', line 561 def short_display @name end |
#single_character_display ⇒ Object
557 558 559 |
# File 'lib/test/spec.rb', line 557 def single_character_display "" end |