Ruby 1.9.2 リファレンスマニュアル > ライブラリ一覧 > 組み込みライブラリ > Regexpクラス > encoding
encoding -> Encoding
Returns the Encoding object that represents the encoding of obj.