Class: Meaning::MeaningLab
- Inherits:
-
Object
- Object
- Meaning::MeaningLab
- Defined in:
- lib/meaning.rb
Instance Attribute Summary collapse
-
#dictionary ⇒ Object
readonly
Returns the value of attribute dictionary.
Instance Method Summary collapse
-
#initialize(word) ⇒ MeaningLab
constructor
A new instance of MeaningLab.
Constructor Details
#initialize(word) ⇒ MeaningLab
Returns a new instance of MeaningLab.
7 8 9 10 11 |
# File 'lib/meaning.rb', line 7 def initialize word word = word.dup.capitalize @dictionary = {word: word} define end |
Instance Attribute Details
#dictionary ⇒ Object (readonly)
Returns the value of attribute dictionary.
6 7 8 |
# File 'lib/meaning.rb', line 6 def dictionary @dictionary end |