1035件ヒット
[1001-1035件を表示]
(0.167秒)
別のキーワード
ライブラリ
- ビルトイン (600)
- benchmark (12)
-
cgi
/ core (36) - delegate (12)
- fiber (8)
- fiddle (12)
-
json
/ add / bigdecimal (12) -
json
/ add / exception (12) -
json
/ add / symbol (12) -
minitest
/ spec (1) - openssl (24)
- optparse (72)
- pathname (60)
- rake (12)
-
rubygems
/ command (12) -
rubygems
/ user _ interaction (24) - set (18)
- win32ole (84)
- zlib (12)
クラス
- BasicObject (48)
-
Benchmark
:: Tms (12) - BigDecimal (12)
- Class (24)
- Delegator (12)
- Enumerator (96)
-
Enumerator
:: Chain (7) -
Enumerator
:: Lazy (48) - Exception (12)
- Fiber (12)
-
Fiddle
:: Closure :: BlockCaller (12) -
Gem
:: Command (12) -
Gem
:: StreamUI (12) - Method (66)
- Module (36)
- NoMethodError (12)
- Object (121)
- OptionParser (72)
- Pathname (60)
- Proc (6)
-
RubyVM
:: InstructionSequence (12) - String (12)
- Symbol (12)
- UnboundMethod (12)
- WIN32OLE (72)
-
WIN32OLE
_ EVENT (12) -
Zlib
:: GzipWriter (12)
モジュール
-
CGI
:: QueryExtension (36) - Enumerable (115)
- FileUtils (12)
-
Gem
:: UserInteraction (12) -
OpenSSL
:: Buffering (24)
キーワード
- % (12)
- === (8)
- [] (12)
-
_ _ send _ _ (24) -
_ getproperty (12) -
_ invoke (12) - allocate (12)
-
ask
_ yes _ no (12) -
bind
_ call (12) - binread (12)
- binwrite (12)
- call (36)
-
class
_ exec (12) - curry (22)
- each (55)
-
each
_ with _ index (24) -
each
_ with _ object (24) - entries (12)
-
enum
_ for (36) - fnmatch (12)
- fnmatch? (12)
- force (12)
- format (12)
- handler= (12)
- handles? (12)
-
has
_ key? (12) - include? (12)
- initialize (12)
-
instance
_ exec (12) - invoke (12)
- key? (12)
-
method
_ missing (36) -
module
_ exec (12) -
must
_ raise (1) - new (12)
- open (12)
- order (48)
- permute (24)
- print (12)
- printf (24)
-
progress
_ reporter (12) -
public
_ send (24) -
respond
_ to _ missing? (12) - ruby (12)
-
ruby2
_ keywords (18) - send (24)
- setproperty (24)
-
to
_ a (24) -
to
_ enum (36) -
to
_ h (19) -
to
_ json (36) -
to
_ set (24) - transfer (12)
-
with
_ index (36) -
with
_ object (24)
検索結果
先頭4件
-
Method
# curry(arity) -> Proc (25.0) -
self を元にカリー化した Proc を返します。
...ず指定する必要があります。
//emlist[例][ruby]{
def foo(a,b,c)
[a, b, c]
end
proc = self.method(:foo).curry
proc2 = proc.call(1, 2) #=> #<Proc>
proc2.call(3) #=> [1,2,3]
def vararg(*args)
args
end
proc = self.method(:vararg).curry(4)
proc2 = proc.cal... -
Enumerator
# with _ index(offset = 0) -> Enumerator (14.0) -
生成時のパラメータに従って、要素にインデックスを添えて繰り返します。 インデックスは offset から始まります。
...ruby]{
str = "xyz"
enum = Enumerator.new {|y| str.each_byte {|b| y << b }}
enum.with_index {|byte, idx| p [byte, idx] }
# => [120, 0]
# [121, 1]
# [122, 2]
require "stringio"
StringIO.new("foo|bar|baz").each("|").with_index(1) {|s, i| p [s, i] }
# => ["foo|", 1]
# ["ba......r|", 2]
# ["baz", 3]
//}
生成時のパラメータに従って、要素にインデックスを添えてブロックを繰り返します。
インデックスは 0 から始まります。
Enumerator#with_index は offset 引数を受け取りますが、
each_with_index は受け取り... -
WIN32OLE
# setproperty(name , val) -> () (14.0) -
オブジェクトのプロパティを設定します。
...クトのプロパティを設定します。
プロパティ名を指定してOLEオートメーションオブジェクトのプロパティ
(Rubyの属性に相当)を設定します。
なお、OLEオートメーションの仕様により、プロパティ名の大文字、小文字は区......me プロパティ名を文字列またはシンボルで指定します。
@param val プロパティに設定する値を指定します。
@param args 集合的なプロパティに対する設定項目を特定するための引数を指
定します。
@raise WIN32OLERuntimeError......ーションのプロパティはRubyの属性と異なり、パラメータを取るこ
とができます。
たとえばExcelのWorksheetオブジェクトのCellsプロパティは桁位置と行番号の
2つのパラメータを取ります。
これはVBでは次のように記述できま... -
Enumerator
:: Lazy # with _ index(offset = 0) -> Enumerator :: Lazy (8.0) -
生成時のパラメータに従って、要素にインデックスを添えて繰り返します。 インデックスは offset から始まります。
...クスは offset から始まります。
ブロックを指定した場合の戻り値は生成時に指定したレシーバ自身です。
//emlist[][ruby]{
("a"..).lazy.with_index(1) { |it, index| puts "#{index}:#{it}" }.take(3).force
# => 1:a
# 2:b
# 3:c
//}
@see Enumerator#with_index...