class Psych::Parser
Experimental RBS support (using type sampling data from the type_fusion project).
# sig/psych/parser.rbs class Psych::Parser def initialize: (?Psych::Handlers::DocumentStream handler) -> void def parse: (File yaml, ?String path) -> nil end
def initialize handler = Handler.new
Experimental RBS support (using type sampling data from the type_fusion project).
def initialize: (?Psych::Handlers::DocumentStream handler) -> void
This signature was generated using 3 samples from 1 application.
def initialize handler = Handler.new @handler = handler @external_encoding = ANY end
def parse yaml, path = yaml.respond_to?(:path) ? yaml.path : "<unknown>"
Experimental RBS support (using type sampling data from the type_fusion project).
def parse: (File yaml, ?String path) -> nil
This signature was generated using 4 samples from 1 application.
def parse yaml, path = yaml.respond_to?(:path) ? yaml.path : "<unknown>" _native_parse @handler, yaml, path end