Module: Jat::Plugins::Types::InstanceMethods

Defined in:
lib/jat/plugins/types/types.rb

Instance Method Summary collapse

Instance Method Details

#blockObject



26
27
28
29
30
31
32
33
34
# File 'lib/jat/plugins/types/types.rb', line 26

def block
  return @block if instance_variable_defined?(:@block)

  original_block = super
  type = opts[:type]
  return original_block unless type

  @block = typed_block(type, original_block)
end