Class: Mood
- Inherits:
-
Object
- Object
- Mood
- Defined in:
- lib/catlogic/mood.rb
Instance Attribute Summary collapse
-
#conclusiontype ⇒ Object
readonly
Returns the value of attribute conclusiontype.
-
#majortype ⇒ Object
readonly
Returns the value of attribute majortype.
-
#minortype ⇒ Object
readonly
Returns the value of attribute minortype.
Instance Method Summary collapse
-
#initialize(majortype, minortype, conclusiontype) ⇒ Mood
constructor
takes three propositionType objects.
- #label ⇒ Object
Constructor Details
#initialize(majortype, minortype, conclusiontype) ⇒ Mood
takes three propositionType objects
5 6 7 8 9 |
# File 'lib/catlogic/mood.rb', line 5 def initialize(majortype, minortype, conclusiontype) @majortype = majortype @minortype = minortype @conclusiontype = conclusiontype end |
Instance Attribute Details
#conclusiontype ⇒ Object (readonly)
Returns the value of attribute conclusiontype.
2 3 4 |
# File 'lib/catlogic/mood.rb', line 2 def conclusiontype @conclusiontype end |
#majortype ⇒ Object (readonly)
Returns the value of attribute majortype.
2 3 4 |
# File 'lib/catlogic/mood.rb', line 2 def majortype @majortype end |
#minortype ⇒ Object (readonly)
Returns the value of attribute minortype.
2 3 4 |
# File 'lib/catlogic/mood.rb', line 2 def minortype @minortype end |
Instance Method Details
#label ⇒ Object
11 12 13 |
# File 'lib/catlogic/mood.rb', line 11 def label "#{@majortype.label}#{@minortype.label}#{@conclusiontype.label}" end |