class TypedConfig::Schema

Attributes

schema_const_name[R]

Public Class Methods

configure(const_name = nil) { |schema_builder| ... } click to toggle source
# 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
rbi() click to toggle source
# File lib/typed_config/schema.rb, line 30
def rbi
  schema_builder.build_rbi(schema_const_name)
end

Private Class Methods

schema_builder() click to toggle source
# File lib/typed_config/schema.rb, line 37
def schema_builder
  @schema_builder ||= SchemaBuilder.new('Settings')
end