Class: DictionaryLookup::Definition
- Inherits:
-
Object
- Object
- DictionaryLookup::Definition
- Defined in:
- lib/dictionary_lookup/definition.rb
Instance Attribute Summary collapse
-
#denotation ⇒ Object
Returns the value of attribute denotation.
-
#examples ⇒ Object
Returns the value of attribute examples.
-
#part_of_speech ⇒ Object
Returns the value of attribute part_of_speech.
Instance Method Summary collapse
-
#initialize(part_of_speech, denotation, examples) ⇒ Definition
constructor
A new instance of Definition.
Constructor Details
#initialize(part_of_speech, denotation, examples) ⇒ Definition
Returns a new instance of Definition.
5 6 7 8 9 |
# File 'lib/dictionary_lookup/definition.rb', line 5 def initialize(part_of_speech, denotation, examples) @part_of_speech = part_of_speech @denotation = denotation @examples = examples end |
Instance Attribute Details
#denotation ⇒ Object
Returns the value of attribute denotation.
3 4 5 |
# File 'lib/dictionary_lookup/definition.rb', line 3 def denotation @denotation end |
#examples ⇒ Object
Returns the value of attribute examples.
3 4 5 |
# File 'lib/dictionary_lookup/definition.rb', line 3 def examples @examples end |
#part_of_speech ⇒ Object
Returns the value of attribute part_of_speech.
3 4 5 |
# File 'lib/dictionary_lookup/definition.rb', line 3 def part_of_speech @part_of_speech end |