Class: JDict::Sense
- Inherits:
-
Object
- Object
- JDict::Sense
- Defined in:
- lib/sense.rb
Instance Attribute Summary collapse
-
#glosses ⇒ Object
readonly
Returns the value of attribute glosses.
-
#parts_of_speech ⇒ Object
readonly
Returns the value of attribute parts_of_speech.
Instance Method Summary collapse
-
#initialize(parts_of_speech, glosses) ⇒ Sense
constructor
Create a new
Sense.
Constructor Details
#initialize(parts_of_speech, glosses) ⇒ Sense
Create a new Sense
10 11 12 |
# File 'lib/sense.rb', line 10 def initialize(parts_of_speech, glosses) @parts_of_speech, @glosses = parts_of_speech, glosses end |
Instance Attribute Details
#glosses ⇒ Object (readonly)
Returns the value of attribute glosses.
7 8 9 |
# File 'lib/sense.rb', line 7 def glosses @glosses end |
#parts_of_speech ⇒ Object (readonly)
Returns the value of attribute parts_of_speech.
7 8 9 |
# File 'lib/sense.rb', line 7 def parts_of_speech @parts_of_speech end |