Class: Doctrine::Tenet

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

Overview

public

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#blockObject (readonly)

Returns the value of attribute block.



16
17
18
# File 'lib/doctrine/tenet.rb', line 16

def block
  @block
end