るりまサーチ

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

別のキーワード

  1. openssl t61string
  2. asn1 t61string
  3. t61string new
  4. matrix t
  5. fiddle type_ssize_t

検索結果

<< 1 2 3 ... > >>

Rake::Task#source -> String (21303.0)

Rake::Task#sources の最初の要素を返します。

...Rake::Task#sources の最初の要素を返します。...

JSON::Parser#source -> String (18309.0)

現在のソースのコピーを返します。

...//emlist[例][ruby]{
require 'json'

parser = JSON::Parser.new(DATA.read)
print parser.source

# => {
# => "Tanaka": {
# => "name":"tanaka",
# => "age":20
# => },
# => "Suzuki": {
# => "name":"suzuki",
# => "age":25
# => }
# => }

__END__
{
"Tanaka": {
"name":"tanaka",...

Regexp#source -> String (18309.0)

その正規表現のもととなった文字列表現を生成して返します。

...その正規表現のもととなった文字列表現を生成して返します。

//emlist[例][ruby]{
re = /foo|bar|baz/i
p re.source # => "foo|bar|baz"
//}...

Resolv::DNS::Resource::TXT#strings -> [String] (15402.0)

TXT レコードの文字列を配列で返します。

...TXT レコードの文字列を配列で返します。...

Gem::SourceInfoCache#latest_system_cache_file -> String (15302.0)

最新のシステムキャッシュのファイル名を返します。

最新のシステムキャッシュのファイル名を返します。

絞り込み条件を変える

JSON::Generator::GeneratorMethods::String#to_json_raw_object -> Hash (15113.0)

生の文字列を格納したハッシュを生成します。

...UTF-8 の文字列ではなく生の文字列を JSON に変換する場合に使用してください。

require 'json'
"にほんご".encode("euc-jp").to_json_raw_object
# => {"json_class"=>"String", "raw"=>[164, 203, 164, 219, 164, 243, 164, 180]}
"にほんご".encode("euc-jp").to_json...
...# source sequence is illegal/malformed (JSON::GeneratorError)...

Module#const_source_location(name, inherited = true) -> [String, Integer] (12381.0)

name で指定した定数の定義を含むソースコードのファイル名と行番号を配列で返します。

...@param name Symbol,String で定数の名前を指定します。
@param inherited true を指定するとスーパークラスや include したモジュールで定義された定数が対象にはなります。false を指定した場合 対象にはなりません。
@return ソースコー...
...st[例][ruby]{
# test.rb:
class A # line 1
C1 = 1
C2 = 2
end

module M # line 6
C3 = 3
end

class B < A # line 10
include M
C4 = 4
end

class A # 継続して A を定義する
C2 = 8 # 定数を再定義する
end

p B.const_source_location('C4') # => ["test...
...12]
p B.const_source_location('C3') # => ["test.rb", 7]
p B.const_source_location('C1') # => ["test.rb", 2]

p B.const_source_location('C3', false) # => nil -- include したモジュールは検索しない

p A.const_source_location('C2') # => ["test.rb", 16] --...

Proc#source_location -> [String, Integer] | nil (12333.0)

ソースコードのファイル名と行番号を配列で返します。

...st[例][ruby]{
# /path/to/target.rb を実行
proc {}.source_location # => ["/path/to/target.rb", 1]
proc {}.source_location # => ["/path/to/target.rb", 2]
(eval "proc {}").source_location # => ["(eval)", 1]
method(:p).to_proc.source_location # => nil
//}

@see Method#source_...
...location...

UnboundMethod#source_location -> [String, Integer] | nil (12327.0)

ソースコードのファイル名と行番号を配列で返します。

...nil を返します。

//emlist[例][ruby]{
require 'time'

T
ime.instance_method(:zone).source_location # => nil
T
ime.instance_method(:httpdate).source_location # => ["/Users/user/.rbenv/versions/2.4.3/lib/ruby/2.4.0/time.rb", 654]
//}

@see Proc#source_location, Method#source_location...
<< 1 2 3 ... > >>