Class: Mock::Turtle
- Inherits:
-
Object
- Object
- Mock::Turtle
- Defined in:
- lib/mock_turtle.rb
Instance Method Summary collapse
-
#initialize(*args) ⇒ Turtle
constructor
A new instance of Turtle.
-
#method_missing(*args) ⇒ Object
It’s turtles all the way down…
- #respond_to?(method) ⇒ Boolean
Constructor Details
#initialize(*args) ⇒ Turtle
Returns a new instance of Turtle.
3 4 5 |
# File 'lib/mock_turtle.rb', line 3 def initialize(*args) # no-op end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
Instance Method Details
#respond_to?(method) ⇒ Boolean
12 13 14 |
# File 'lib/mock_turtle.rb', line 12 def respond_to?(method) true end |