Class: YARDSorbet::TStructProp
- Inherits:
-
T::Struct
- Object
- T::Struct
- YARDSorbet::TStructProp
- Defined in:
- lib/yard-sorbet/t_struct_prop.rb
Overview
Used to store the details of a T::Struct
prop
definition
Instance Attribute Summary collapse
-
#default ⇒ String?
readonly
Returns the value of prop
default
. -
#doc ⇒ String
readonly
Returns the value of prop
doc
. -
#prop_name ⇒ String
readonly
Returns the value of prop
prop_name
. -
#source ⇒ String
readonly
Returns the value of prop
source
. -
#types ⇒ Array<String>
readonly
Returns the value of prop
types
.
Instance Method Summary collapse
Constructor Details
#initialize(default: nil, doc:, prop_name:, source:, types:) ⇒ void
|
# File '' const :default, T.nilable(String) const :doc, String const :prop_name, String const :source, String const :types, T::Array[String] |
Instance Attribute Details
#default ⇒ String? (readonly)
Returns the value of prop default
.
|
# File '' const :default, T.nilable(String) |
#doc ⇒ String (readonly)
Returns the value of prop doc
.
|
# File '' const :doc, String |
#prop_name ⇒ String (readonly)
Returns the value of prop prop_name
.
|
# File '' const :prop_name, String |
#source ⇒ String (readonly)
Returns the value of prop source
.
|
# File '' const :source, String |
#types ⇒ Array<String> (readonly)
Returns the value of prop types
.
|
# File '' const :types, T::Array[String] |