Class: HaarJoke::Joke
- Inherits:
-
Object
- Object
- HaarJoke::Joke
- Defined in:
- lib/haar_joke/joke.rb
Overview
This class can be used to create joke instances. The .text method returns the joke text.
Instance Attribute Summary collapse
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Instance Attribute Details
#text ⇒ Object (readonly)
Returns the value of attribute text.
5 6 7 |
# File 'lib/haar_joke/joke.rb', line 5 def text @text end |