るりまサーチ

最速Rubyリファレンスマニュアル検索!
1140件ヒット [1101-1140件を表示] (0.051秒)

別のキーワード

  1. openssl g
  2. openssl g=
  3. dh g
  4. dsa g
  5. dsa g=

キーワード

検索結果

<< < ... 10 11 12 >>

REXML::Entity#to_s -> String (107.0)

実体宣言を文字列化したものを返します。

...実体宣言を文字列化したものを返します。

@see REXML::Entity#write

//emlist[][ruby]{
e = REXML::ENTITY.new("w", "wee");
p e.to_s # => "<!ENTITY w \"wee\">"
//}...

Method#<<(callable) -> Proc (19.0)

self と引数を合成した Proc を返します。

...ruby]{
def f(x)
x * x
end

def g(x)
x + x
end

# (3 + 3) * (3 + 3)
p (method(:f) << method(:g)).call(3) # => 36
//}

//emlist[call を定義したオブジェクトを渡す例][ruby]{
class WordScanner
def self.call(str)
str.scan(/\w+/)
end
end

File.write('testfile', <<~TEXT)
Hello,...

Method#>>(callable) -> Proc (19.0)

self と引数を合成した Proc を返します。

...ruby]{
def f(x)
x * x
end

def g(x)
x + x
end

# (3 * 3) + (3 * 3)
p (method(:f) >> method(:g)).call(3) # => 18
//}

//emlist[call を定義したオブジェクトを渡す例][ruby]{
class WordScanner
def self.call(str)
str.scan(/\w+/)
end
end

File.write('testfile', <<~TEXT)
Hello,...

Proc#<<(callable) -> Proc (19.0)

self と引数を合成した Proc を返します。

...ist[例][ruby]{
f = proc { |x| x * x }
g
= proc { |x| x + x }

# (3 + 3) * (3 + 3)
p (f << g).call(3) # => 36
//}

//emlist[call を定義したオブジェクトを渡す例][ruby]{
class WordScanner
def self.call(str)
str.scan(/\w+/)
end
end

File.write('testfile', <<~TEXT)
Hello, World!...

Proc#>>(callable) -> Proc (19.0)

self と引数を合成した Proc を返します。

...ist[例][ruby]{
f = proc { |x| x * x }
g
= proc { |x| x + x }

# (3 * 3) + (3 * 3)
p (f >> g).call(3) # => 18
//}

//emlist[call を定義したオブジェクトを渡す例][ruby]{
class WordScanner
def self.call(str)
str.scan(/\w+/)
end
end

File.write('testfile', <<~TEXT)
Hello, World!...

絞り込み条件を変える

<< < ... 10 11 12 >>