Class: TypedConfig::Schema
- Inherits:
-
Object
- Object
- TypedConfig::Schema
- Extended by:
- T::Sig
- Defined in:
- lib/typed_config/schema.rb
Class Attribute Summary collapse
-
.schema_const_name ⇒ Object
readonly
Returns the value of attribute schema_const_name.
Class Method Summary collapse
Class Attribute Details
.schema_const_name ⇒ Object (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
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 |
.rbi ⇒ Object
30 31 32 |
# File 'lib/typed_config/schema.rb', line 30 def rbi schema_builder.build_rbi(schema_const_name) end |