別のキーワード
種類
- インスタンスメソッド (24)
- ライブラリ (12)
ライブラリ
- ビルトイン (12)
-
rubygems
/ specification (12)
クラス
-
Gem
:: Specification (12) - String (12)
検索結果
-
Gem
:: Specification # email=(email) (18100.0) -
メールアドレスをセットします。
メールアドレスをセットします。
@param email メールアドレスを指定します。 -
rubygems (18.0)
-
RubyGems を扱うためのクラスやモジュールが定義されているライブラリです。
...= '0.0.0'
s.summary = 'hello summary'
s.files = ['lib/hello.rb']
s.authors = ['Hello Author']
s.email = 'hello_author@example.com'
s.homepage = 'http://example.com/hello/'
s.description = 'hello description'
end
//}
: name......ummary'
s.files = ['bin/hello', 'lib/hello.rb']
s.executables = ['hello']
s.authors = ['Hello Author']
s.email = 'hello@example.com'
s.homepage = 'http://example.com/hello'
s.description = 'hello description'
end
//}
ライブラリ......spec = Gem::Specification.new do |s|
s.name = 'hello'
s.version = '0.0.1'
s.author = 'Hello Author'
s.email = 'hello@example.com'
s.homepage = 'http://example.com/hello'
s.platform = Gem::Platform::RUBY
s.summary = 'Hel... -
String
# tr(pattern , replace) -> String (6.0) -
pattern 文字列に含まれる文字を検索し、 それを replace 文字列の対応する文字に置き換えます。
...'a-z') # => "foo"
# シーザー暗号の復号
p "ORYV".tr("A-Z", "D-ZA-C") # => "RUBY"
# 全角英数字といくつかの記号の半角化
email = "ruby−lang@example.com"
p email.tr("0-9a-zA-Z.@−", "0-9a-zA-Z.@-")
# => "ruby-lang@ex...