class Psych::Visitors::ToRuby
def init_with o, h, node
Experimental RBS support (using type sampling data from the type_fusion
project).
type Psych__Visitors__ToRuby_init_with_o = Gem::Version | Gem::Dependency | Gem::Requirement | Gem::Specification type Psych__Visitors__ToRuby_init_with_return_value = Gem::Version | Gem::Dependency | Gem::Requirement | Gem::Specification def init_with: (Psych__Visitors__ToRuby_init_with_o o, Hash h, Psych::Nodes::Mapping node) -> Psych__Visitors__ToRuby_init_with_return_value
This signature was generated using 102 samples from 2 applications.
def init_with o, h, node c = Psych::Coder.new(node.tag) c.map = h if o.respond_to?(:init_with) o.init_with c else h.each { |k,v| o.instance_variable_set(:"@#{k}", v) } end o end