9件ヒット
[1-9件を表示]
(0.176秒)
ライブラリ
- openssl (1)
- optparse (4)
-
racc
/ parser (1) - rexml (1)
- uri (2)
クラス
-
OpenSSL
:: X509 :: Name (1) - OptionParser (2)
-
OptionParser
:: ParseError (2) -
REXML
:: ParseException (1) -
Racc
:: Parser (1) -
URI
:: Generic (2)
キーワード
- help (1)
- normalize! (1)
-
token
_ to _ str (1)
検索結果
先頭5件
-
OptionParser
:: ParseError # to _ s -> String (81607.0) -
標準エラーに出力するメッセージを返します。
標準エラーに出力するメッセージを返します。
@return 文字列を返します。 -
REXML
:: ParseException # to _ s -> String (81607.0) -
例外情報を文字列化して返します。
例外情報を文字列化して返します。 -
OpenSSL
:: X509 :: Name # to _ s(flags=nil) -> String (72715.0) -
DNの文字列表現を返します。
DNの文字列表現を返します。
flags には通常は以下のいずれかを渡します。
* nil
* OpenSSL::X509::Name::COMPAT
* OpenSSL::X509::Name::RFC2253
* OpenSSL::X509::Name::ONELINE
* OpenSSL::X509::Name::MULTILINE
*
例:
require 'openssl'
n = OpenSSL::X509::Name.parse('/C=JP/ST=Kanagawa/L=Yokohama/O=Example Company/OU=Lab3/CN... -
URI
:: Generic # to _ s -> String (72643.0) -
自身が表す URI を文字列として返します。
自身が表す URI を文字列として返します。
例:
require 'uri'
p URI.parse('http://example.com/').to_s #=> "http://example.com/" -
OptionParser
# to _ s -> String (72607.0) -
サマリの文字列を返します。
サマリの文字列を返します。
//emlist[例][ruby]{
require "optparse"
options = {}
opts = OptionParser.new do |opts|
opts.banner = "Usage: example.rb [options]"
opts.on("-v", "--[no-]verbose", "Run verbosely") do |v|
options[:verbose] = v
end
end
puts opts.help
# => Usage: example.rb [options]
# -v... -
Racc
:: Parser # token _ to _ str(t) (63907.0) -
@todo
@todo -
OptionParser
:: ParseError # message -> String (27307.0) -
標準エラーに出力するメッセージを返します。
標準エラーに出力するメッセージを返します。
@return 文字列を返します。 -
OptionParser
# help -> String (18307.0) -
サマリの文字列を返します。
サマリの文字列を返します。
//emlist[例][ruby]{
require "optparse"
options = {}
opts = OptionParser.new do |opts|
opts.banner = "Usage: example.rb [options]"
opts.on("-v", "--[no-]verbose", "Run verbosely") do |v|
options[:verbose] = v
end
end
puts opts.help
# => Usage: example.rb [options]
# -v... -
URI
:: Generic # normalize! -> String | nil (358.0) -
URI オブジェクトを正規化して返します。ホスト名を小文字にし、パスと 構成要素がなければ '/' をセットします。
URI オブジェクトを正規化して返します。ホスト名を小文字にし、パスと
構成要素がなければ '/' をセットします。
例:
require 'uri'
u = URI.parse('http://Example.Com')
p u.to_s #=> "http://Example.Com"
p u.normalize.to_s #=> "http://example.com/"