定数¶ lib 宣言の内部でも定数を宣言できます @[Link("pcre")] lib PCRE INFO_CAPTURECOUNT = 2 end PCRE::INFO_CAPTURECOUNT # => 2