Class: TypedConfig::Schema

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/typed_config/schema.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.schema_const_nameObject (readonly)

Returns the value of attribute schema_const_name.



16
17
18
# File 'lib/typed_config/schema.rb', line 16

def schema_const_name
  @schema_const_name
end

Class Method Details

.configure(const_name = nil) {|schema_builder| ... } ⇒ Object

Yields:

  • (schema_builder)


24
25
26
27
# File 'lib/typed_config/schema.rb', line 24

def configure(const_name = nil, &_blk)
  @schema_const_name = const_name || schema_const_name
  yield schema_builder
end

.rbiObject



30
31
32
# File 'lib/typed_config/schema.rb', line 30

def rbi
  schema_builder.build_rbi(schema_const_name)
end