Class: Meaning::MeaningLab

Inherits:
Object
  • Object
show all
Defined in:
lib/meaning.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#dictionaryObject (readonly)

Returns the value of attribute dictionary.



6
7
8
# File 'lib/meaning.rb', line 6

def dictionary
  @dictionary
end