別のキーワード
クラス
- CSV (48)
-
CSV
:: Row (12) -
CSV
:: Table (12) - File (12)
-
OpenSSL
:: ASN1 :: PrintableString (24) -
RubyVM
:: InstructionSequence (24)
キーワード
- disasm (12)
- disassemble (12)
- new (60)
- read (12)
- readlines (12)
-
world
_ writable? (12)
検索結果
先頭5件
- CSV
. table(path , options = Hash . new) -> CSV :: Table | [Array] - File
. world _ writable?(path) -> bool - CSV
:: Table . new(array _ of _ rows) -> CSV :: Table - OpenSSL
:: ASN1 :: PrintableString . new(value) -> OpenSSL :: ASN1 :: PrintableString - OpenSSL
:: ASN1 :: PrintableString . new(value , tag , tagging , tag _ class) -> OpenSSL :: ASN1 :: PrintableString
-
CSV
. table(path , options = Hash . new) -> CSV :: Table | [Array] (18209.0) -
以下と同等のことを行うメソッドです。
...以下と同等のことを行うメソッドです。
//emlist[][ruby]{
CSV.read( path, { headers: true,
converters: :numeric,
header_converters: :symbol }.merge(options) )
//}
@param path ファイル名を指定します。
@param options C... -
File
. world _ writable?(path) -> bool (6107.0) -
path が全てのユーザから書き込めるならば、そのファイルのパーミッションを表す 整数を返します。そうでない場合は nil を返します。
...ない場合は nil を返します。
整数の意味はプラットフォームに依存します。
@param path パスを表す文字列か IO オブジェクトを指定します。
//emlist[例][ruby]{
m = File.world_writable?("/tmp")
"%o" % m #=> "777"
//}......でない場合は nil を返します。
整数の意味はプラットフォームに依存します。
@param path パスを表す文字列か IO オブジェクトを指定します。
//emlist[例][ruby]{
m = File.world_writable?("/tmp")
"%o" % m #=> "777"
//}... -
CSV
:: Table . new(array _ of _ rows) -> CSV :: Table (3126.0) -
自身を初期化します。
...ンスの配列を指定します。
//emlist[例][ruby]{
require "csv"
row1 = CSV::Row.new(["header1", "header2"], ["row1_1", "row1_2"])
row2 = CSV::Row.new(["header1", "header2"], ["row2_1", "row2_2"])
table = CSV::Table.new([row1, row2])
table.to_a # => [["header1", "header2"], ["row1_1", "row1... -
OpenSSL
:: ASN1 :: PrintableString . new(value) -> OpenSSL :: ASN1 :: PrintableString (3107.0) -
ASN.1 の PrintableString 型の値を表現する OpenSSL::ASN1::PrintableString オブジェクトを 生成します。
...PrintableString 型の値を表現する OpenSSL::ASN1::PrintableString オブジェクトを
生成します。
value 以外の引数を省略した場合はタグクラスは :UNIVERSAL、
タグ は OpenSSL::ASN1::PRINTABLESTRING となります。
@param value ASN.1 値を表す Ruby のオ... -
OpenSSL
:: ASN1 :: PrintableString . new(value , tag , tagging , tag _ class) -> OpenSSL :: ASN1 :: PrintableString (3107.0) -
ASN.1 の PrintableString 型の値を表現する OpenSSL::ASN1::PrintableString オブジェクトを 生成します。
...PrintableString 型の値を表現する OpenSSL::ASN1::PrintableString オブジェクトを
生成します。
value 以外の引数を省略した場合はタグクラスは :UNIVERSAL、
タグ は OpenSSL::ASN1::PRINTABLESTRING となります。
@param value ASN.1 値を表す Ruby のオ... -
RubyVM
:: InstructionSequence . disasm(body) -> String (3013.0) -
引数 body で指定したオブジェクトから作成した RubyVM::InstructionSequence オブジェクトを人間が読める形式の文字 列に変換して返します。
...た
RubyVM::InstructionSequence オブジェクトを人間が読める形式の文字
列に変換して返します。
@param body Proc、Method オブジェクトを指定します。
例1:Proc オブジェクトを指定した場合
# /tmp/proc.rb
p = proc { num = 1 + 2 }
puts RubyVM::I......asm: <RubyVM::InstructionSequence:block in <main>@/tmp/proc.rb>===
== catch table
| catch type: redo st: 0000 ed: 0012 sp: 0000 cont: 0000
| catch type: next st: 0000 ed: 0012 sp: 0000 cont: 0012
|------------------------------------------------------------------------
local table (siz......オブジェクトを指定した場合
# /tmp/method.rb
def hello
puts "hello, world"
end
puts RubyVM::InstructionSequence.disasm(method(:hello))
出力:
== disasm: <RubyVM::InstructionSequence:hello@/tmp/method.rb>============
0000 trace 8... -
RubyVM
:: InstructionSequence . disassemble(body) -> String (3013.0) -
引数 body で指定したオブジェクトから作成した RubyVM::InstructionSequence オブジェクトを人間が読める形式の文字 列に変換して返します。
...た
RubyVM::InstructionSequence オブジェクトを人間が読める形式の文字
列に変換して返します。
@param body Proc、Method オブジェクトを指定します。
例1:Proc オブジェクトを指定した場合
# /tmp/proc.rb
p = proc { num = 1 + 2 }
puts RubyVM::I......asm: <RubyVM::InstructionSequence:block in <main>@/tmp/proc.rb>===
== catch table
| catch type: redo st: 0000 ed: 0012 sp: 0000 cont: 0000
| catch type: next st: 0000 ed: 0012 sp: 0000 cont: 0012
|------------------------------------------------------------------------
local table (siz......オブジェクトを指定した場合
# /tmp/method.rb
def hello
puts "hello, world"
end
puts RubyVM::InstructionSequence.disasm(method(:hello))
出力:
== disasm: <RubyVM::InstructionSequence:hello@/tmp/method.rb>============
0000 trace 8... -
CSV
. read(path , options = Hash . new) -> [Array] | CSV :: Table (161.0) -
CSV ファイルを配列の配列にするために使います。 headers オプションに偽でない値を指定した場合は CSV::Table オブジェクトを返します。
...CSV ファイルを配列の配列にするために使います。
headers オプションに偽でない値を指定した場合は CSV::Table オブジェクトを返します。
@param path CSV ファイルのパスを指定します。
@param options CSV.new のオプションと同じオプ......コーディングか Encoding.default_external と異なる場合は
必ず指定しなければなりません。
//emlist[例][ruby]{
require "csv"
require "pp"
File.write("test.csv", <<CSV)
id,first name,last name,age
1,taro,tanaka,20
2,jiro,suzuki,18
3,ami,sato,19
4,yumi,adachi......adachi", "21"]]
//}
//emlist[例][ruby]{
require "csv"
File.write("test.csv", <<CSV)
id,first name,last name,age
1,taro,tanaka,20
2,jiro,suzuki,18
3,ami,sato,19
4,yumi,adachi,21
CSV
table = CSV.read("test.csv", headers: true)
p table.class # => CSV::Table
p table[0] # => #<CSV::Row "id":"1" "f... -
CSV
. readlines(path , options = Hash . new) -> [Array] | CSV :: Table (161.0) -
CSV ファイルを配列の配列にするために使います。 headers オプションに偽でない値を指定した場合は CSV::Table オブジェクトを返します。
...CSV ファイルを配列の配列にするために使います。
headers オプションに偽でない値を指定した場合は CSV::Table オブジェクトを返します。
@param path CSV ファイルのパスを指定します。
@param options CSV.new のオプションと同じオプ......コーディングか Encoding.default_external と異なる場合は
必ず指定しなければなりません。
//emlist[例][ruby]{
require "csv"
require "pp"
File.write("test.csv", <<CSV)
id,first name,last name,age
1,taro,tanaka,20
2,jiro,suzuki,18
3,ami,sato,19
4,yumi,adachi......adachi", "21"]]
//}
//emlist[例][ruby]{
require "csv"
File.write("test.csv", <<CSV)
id,first name,last name,age
1,taro,tanaka,20
2,jiro,suzuki,18
3,ami,sato,19
4,yumi,adachi,21
CSV
table = CSV.read("test.csv", headers: true)
p table.class # => CSV::Table
p table[0] # => #<CSV::Row "id":"1" "f...