Class: JDict::Sense

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#glossesObject (readonly)

Returns the value of attribute glosses.



7
8
9
# File 'lib/sense.rb', line 7

def glosses
  @glosses
end

#parts_of_speechObject (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

Instance Method Details

#to_sObject



14
15
16
# File 'lib/sense.rb', line 14

def to_s
  parts_of_speech_to_s(@parts_of_speech) + glosses_to_s(@glosses)
end