297件ヒット
[101-200件を表示]
(0.083秒)
別のキーワード
ライブラリ
- ビルトイン (117)
- getoptlong (12)
- rake (108)
-
rubygems
/ command (24) -
rubygems
/ commands / build _ command (12) -
rubygems
/ commands / dependency _ command (12) -
rubygems
/ config _ file (12)
クラス
-
Gem
:: Command (24) -
Gem
:: Commands :: BuildCommand (12) -
Gem
:: Commands :: DependencyCommand (12) -
Gem
:: ConfigFile (12) - GetoptLong (12)
- Module (12)
- Object (30)
- Proc (30)
-
Rake
:: TaskArguments (108) - String (45)
キーワード
- << (9)
- [] (12)
- concat (18)
- curry (24)
-
defaults
_ str (12) - each (12)
-
handle
_ arguments (12) - inspect (12)
- lookup (12)
- names (12)
-
new
_ scope (12) - prepend (18)
-
ruby2
_ keywords (18) - then (14)
-
to
_ hash (12) -
to
_ s (12) -
with
_ defaults (12) -
yield
_ self (16)
検索結果
先頭5件
-
Rake
:: TaskArguments # to _ hash -> Hash (3013.0) -
パラメータ名と対応する値を格納したハッシュを返します。
...納したハッシュを返します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
arguments = Rake::TaskArguments.new(["name1", "name2"], ["value1", "value2"])
arguments.to_hash # => {:name1=>"value1", :name2=>"value2"}
end
//}... -
Rake
:: TaskArguments # each {|key , val| . . . } -> Hash (3001.0) -
自身に含まれるパラメータ名とそれに対応する値をブロックパラメータとしてブロックを評価します。
自身に含まれるパラメータ名とそれに対応する値をブロックパラメータとしてブロックを評価します。
@see Hash#each -
Rake
:: TaskArguments # inspect -> String (3001.0) -
自身を人間に読みやすい文字列にして返します。
自身を人間に読みやすい文字列にして返します。
@see Hash#inspect -
Rake
:: TaskArguments # lookup(name) -> object (3001.0) -
与えられた名前に対応する値を返します。
与えられた名前に対応する値を返します。
@param name パラメータ名を指定します。 -
Rake
:: TaskArguments # to _ s -> String (3001.0) -
自身を人間に読みやすい文字列にして返します。
自身を人間に読みやすい文字列にして返します。
@see Hash#inspect -
GetoptLong
# set _ options(*arguments) -> self (108.0) -
あなたのプログラムで、認識させたいオプションをセットします。 個々のオプションは、オプション名と引数のフラグからなる配列でな ければいけません。
...これらのメソッドを
呼び出した後でオプションを設定しようとすると、RuntimeError
例外が発生します。
@param arguments オプションを表す配列を指定します。
@raise ArgumentError 不正な引数が与えられるた場合、発生します。
p... -
String
# concat(*arguments) -> self (108.0) -
self に複数の文字列を破壊的に連結します。
...る文字を末尾に追加します。追加する文字のエンコーディングは self.encoding です。
self を返します。
@param arguments 複数の文字列もしくは 0 以上の整数
//emlist[例][ruby]{
str = "foo"
str.concat
p str # => "foo"
str = "foo"
str.concat "bar",... -
String
# prepend(*arguments) -> String (108.0) -
複数の文字列を先頭に破壊的に追加します。
...複数の文字列を先頭に破壊的に追加します。
@param arguments 追加したい文字列を指定します。
//emlist[例][ruby]{
a = "!!!"
a.prepend # => "!!!"
a # => "!!!"
a = "!!!"
a.prepend "hello ", "world" # => "hello world!!!"
a # => "hello... -
Proc
# curry -> Proc (25.0) -
Procをカリー化します
...#=> 6
p b.curry[1, 2][3, 4] #=> wrong number of arguments (given 4, expected 3)
p b.curry(5) #=> wrong number of arguments (given 5, expected 3)
p b.curry(1) #=> wrong number of arguments (given 1, expected 3)
b = lambda {|x, y, z, *w| (x||0) + (y||0......0) + w.sum }
p b.curry[1][2][3] #=> 6
p b.curry[1, 2][3, 4] #=> 10
p b.curry(5)[1][2][3][4][5] #=> 15
p b.curry(5)[1, 2][3, 4][5] #=> 15
p b.curry(1) #=> wrong number of arguments (given 1, expected 3+)
b = proc { :foo }
p b.curry[] #=> :foo
//}... -
Proc
# curry(arity) -> Proc (25.0) -
Procをカリー化します
...#=> 6
p b.curry[1, 2][3, 4] #=> wrong number of arguments (given 4, expected 3)
p b.curry(5) #=> wrong number of arguments (given 5, expected 3)
p b.curry(1) #=> wrong number of arguments (given 1, expected 3)
b = lambda {|x, y, z, *w| (x||0) + (y||0......0) + w.sum }
p b.curry[1][2][3] #=> 6
p b.curry[1, 2][3, 4] #=> 10
p b.curry(5)[1][2][3][4][5] #=> 15
p b.curry(5)[1, 2][3, 4][5] #=> 15
p b.curry(1) #=> wrong number of arguments (given 1, expected 3+)
b = proc { :foo }
p b.curry[] #=> :foo
//}...