Class: SummaryJudgement::Descriptor
- Defined in:
- lib/summary_judgement/descriptor.rb
Instance Attribute Summary collapse
-
#condition ⇒ Object
readonly
Returns the value of attribute condition.
-
#phrase ⇒ Object
readonly
Returns the value of attribute phrase.
Instance Method Summary collapse
-
#initialize(phrase, options = {}) ⇒ Descriptor
constructor
A new instance of Descriptor.
Constructor Details
#initialize(phrase, options = {}) ⇒ Descriptor
Returns a new instance of Descriptor.
5 6 7 8 |
# File 'lib/summary_judgement/descriptor.rb', line 5 def initialize(phrase, = {}) @phrase = phrase @condition = [:if] end |
Instance Attribute Details
#condition ⇒ Object (readonly)
Returns the value of attribute condition.
3 4 5 |
# File 'lib/summary_judgement/descriptor.rb', line 3 def condition @condition end |
#phrase ⇒ Object (readonly)
Returns the value of attribute phrase.
3 4 5 |
# File 'lib/summary_judgement/descriptor.rb', line 3 def phrase @phrase end |