Class: Sklaventreiber::Mock
- Inherits:
-
Object
- Object
- Sklaventreiber::Mock
- Defined in:
- lib/sklaventreiber/mock.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Mock
constructor
A new instance of Mock.
Constructor Details
#initialize ⇒ Mock
Returns a new instance of Mock.
5 6 7 |
# File 'lib/sklaventreiber/mock.rb', line 5 def initialize() puts "mock created" end |
Class Method Details
.mock_method(sleeping_time) ⇒ Object
9 10 11 12 13 |
# File 'lib/sklaventreiber/mock.rb', line 9 def self.mock_method( sleeping_time ) puts "mock doing work for " + sleeping_time.to_s + " seconds" sleep( sleeping_time ) puts "work finished" end |