o:$YARD::CodeObjects::MethodObject:@scope: instance:@visibility:public: @pathI"7Encoding::UndefinedConversionError#source_encoding:EF:@parameters[�:@files[[I"transcode.c;T0:@current_file_has_commentsF: @name:source_encoding:@source_type:c: @tags[�:@docstringIC:YARD::Docstring"oReturns the source encoding as an encoding object. Note that the result may not be equal to the source encoding of the encoding converter if the conversion has multiple steps. ec = Encoding::Converter.new("ISO-8859-1", "EUC-JP") # ISO-8859-1 -> UTF-8 -> EUC-JP begin ec.convert("\xa0") # NO-BREAK SPACE, which is available in UTF-8 but not in EUC-JP. rescue Encoding::UndefinedConversionError p $!.source_encoding #=> #<Encoding:UTF-8> p $!.destination_encoding #=> #<Encoding:EUC-JP> p $!.source_encoding_name #=> "UTF-8" p $!.destination_encoding_name #=> "EUC-JP" end;F:@objectIu:YARD::StubProxy7Encoding::UndefinedConversionError#source_encoding;F: @summary0:@ref_tags[�;[o:YARD::Tags::OverloadTag :@tag_nameI" overload;F: @text0;;:@types0:@signatureI"source_encoding;F;IC;"�;F;Iu;7Encoding::UndefinedConversionError#source_encoding;F;0;[�;[o:YARD::Tags::Tag ;I"return;F;I"�;F;0;[I" Encoding;F;0: @allI"@return [Encoding];F;[�;Iu;7Encoding::UndefinedConversionError#source_encoding;F; I"�Returns the source encoding as an encoding object. Note that the result may not be equal to the source encoding of the encoding converter if the conversion has multiple steps. ec = Encoding::Converter.new("ISO-8859-1", "EUC-JP") # ISO-8859-1 -> UTF-8 -> EUC-JP begin ec.convert("\xa0") # NO-BREAK SPACE, which is available in UTF-8 but not in EUC-JP. rescue Encoding::UndefinedConversionError p $!.source_encoding #=> #<Encoding:UTF-8> p $!.destination_encoding #=> #<Encoding:EUC-JP> p $!.source_encoding_name #=> "UTF-8" p $!.destination_encoding_name #=> "EUC-JP" end @overload source_encoding @return [Encoding];F:@namespaceIu;'Encoding::UndefinedConversionError;F:@docstring_extra0:@sourceI"T/* * call-seq: * ecerr.source_encoding -> encoding * * Returns the source encoding as an encoding object. * * Note that the result may not be equal to the source encoding of * the encoding converter if the conversion has multiple steps. * * ec = Encoding::Converter.new("ISO-8859-1", "EUC-JP") # ISO-8859-1 -> UTF-8 -> EUC-JP * begin * ec.convert("\xa0") # NO-BREAK SPACE, which is available in UTF-8 but not in EUC-JP. * rescue Encoding::UndefinedConversionError * p $!.source_encoding #=> #<Encoding:UTF-8> * p $!.destination_encoding #=> #<Encoding:EUC-JP> * p $!.source_encoding_name #=> "UTF-8" * p $!.destination_encoding_name #=> "EUC-JP" * end * */ static VALUE ecerr_source_encoding(VALUE self) { return rb_attr_get(self, rb_intern("source_encoding")); };F