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.
551 552 553 |
# File 'lib/test/spec.rb', line 551 def initialize(name) @name = name end |
Instance Method Details
#long_display ⇒ Object
563 564 565 |
# File 'lib/test/spec.rb', line 563 def long_display @name + " is empty" end |
#short_display ⇒ Object
559 560 561 |
# File 'lib/test/spec.rb', line 559 def short_display @name end |
#single_character_display ⇒ Object
555 556 557 |
# File 'lib/test/spec.rb', line 555 def single_character_display "" end |