Class: Doctrine::Tenet
- Inherits:
-
Object
- Object
- Doctrine::Tenet
- Defined in:
- lib/doctrine/tenet.rb
Overview
- public
Instance Attribute Summary collapse
-
#block ⇒ Object
readonly
Returns the value of attribute block.
Instance Method Summary collapse
-
#initialize(description:, &block) ⇒ Tenet
constructor
A new instance of Tenet.
Constructor Details
#initialize(description:, &block) ⇒ Tenet
Returns a new instance of Tenet.
10 11 12 13 14 |
# File 'lib/doctrine/tenet.rb', line 10 def initialize(description:, &block) @description = description @block = block @error = nil end |
Instance Attribute Details
#block ⇒ Object (readonly)
Returns the value of attribute block.
16 17 18 |
# File 'lib/doctrine/tenet.rb', line 16 def block @block end |