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.
9 10 11 12 13 |
# File 'lib/meaning.rb', line 9 def initialize word word = word.dup.capitalize @dictionary = {word: word} define end |
Instance Attribute Details
#dictionary ⇒ Object (readonly)
Returns the value of attribute dictionary.
8 9 10 |
# File 'lib/meaning.rb', line 8 def dictionary @dictionary end |