Class: HaarJoke::Joke

Inherits:
Object
  • Object
show all
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

Instance Attribute Details

#textObject (readonly)

Returns the value of attribute text.



5
6
7
# File 'lib/haar_joke/joke.rb', line 5

def text
  @text
end