Slide 52
Slide 52 text
型シグネチャは仕様のサマリなので概観を把握しやすい
module Ancestry
module HasAncestry
def has_ancestry: (?{
?ancestry_column: String | Symbol,
?orphan_strategy: :destroy | :rootify | :restrict | :adopt | :none,
?cache_depth: bool | String | :virtual | Symbol,
?depth_cache_column: String | Symbol,
?touch: bool,
?counter_cache: bool | String | Symbol,
?primary_key_format: '[0-9]+' | '[-A-Fa-f0-9]{36}',
?update_strategy: :sql | :ruby,
?ancestry_format: :materialized_path | :materialized_path2 } options) -> void
gem_rbs_collection/gems/ancestry/5.1/ancestry/has_ancestry.rbs