7302件ヒット
[201-300件を表示]
(0.150秒)
ライブラリ
- ビルトイン (4900)
- abbrev (12)
- bigdecimal (24)
- csv (267)
- date (28)
-
fiddle
/ import (12) -
irb
/ context (12) - json (36)
-
json
/ add / date (12) -
json
/ add / date _ time (12) - logger (84)
- matrix (150)
- mkmf (12)
-
net
/ http (360) - open-uri (12)
- openssl (36)
- optparse (72)
- ostruct (12)
- pathname (108)
- pp (24)
- psych (128)
- rake (168)
-
rake
/ testtask (36) -
rdoc
/ parser / ruby (12) - resolv (12)
-
rexml
/ document (216) -
rexml
/ streamlistener (12) -
ripper
/ lexer (24) -
rubygems
/ commands / update _ command (12) -
rubygems
/ requirement (36) -
rubygems
/ specification (120) - set (27)
- socket (24)
- stringio (62)
- strscan (72)
- thread (2)
- tsort (70)
-
webrick
/ httprequest (12) - win32ole (72)
クラス
-
ARGF
. class (24) - Addrinfo (24)
- Array (1731)
- BigDecimal (24)
- Binding (24)
- CSV (96)
-
CSV
:: Row (3) -
CSV
:: Table (156) - Data (6)
- Date (38)
- DateTime (14)
-
Encoding
:: Converter (84) -
Encoding
:: InvalidByteSequenceError (24) - Enumerator (132)
-
Enumerator
:: Lazy (386) -
Enumerator
:: Yielder (30) -
File
:: Stat (48) -
Gem
:: Commands :: UpdateCommand (12) -
Gem
:: Requirement (36) -
Gem
:: Specification (120) - Hash (402)
- IO (90)
-
IRB
:: Context (12) - Integer (8)
-
JSON
:: State (24) - Logger (72)
-
Logger
:: Formatter (12) - MatchData (36)
- Matrix (102)
- Method (70)
- Module (192)
- Mutex (4)
-
Net
:: HTTP (24) -
Net
:: HTTPGenericRequest (72) -
Net
:: HTTPResponse (48) - NilClass (12)
- Numeric (74)
- Object (160)
-
ObjectSpace
:: WeakMap (12) -
OpenSSL
:: BN (36) - OpenStruct (12)
- OptionParser (72)
- Pathname (108)
- Proc (36)
-
Psych
:: Nodes :: Node (24) -
Psych
:: ScalarScanner (12) -
Psych
:: Stream (24) -
Psych
:: Visitors :: YAMLTree (36) -
RDoc
:: Parser :: Ruby (12) -
REXML
:: Attribute (12) -
REXML
:: Attributes (12) -
REXML
:: DocType (108) -
REXML
:: Element (72) -
REXML
:: Entity (12) -
Rake
:: Application (24) -
Rake
:: FileList (48) -
Rake
:: NameSpace (12) -
Rake
:: TaskArguments (24) -
Rake
:: TestTask (36) - Random (12)
- Range (50)
- Rational (12)
-
Resolv
:: DNS :: Name (12) -
Ripper
:: Lexer (24) -
RubyVM
:: AbstractSyntaxTree :: Node (49) -
RubyVM
:: InstructionSequence (130) - Set (36)
- String (211)
- StringIO (62)
- StringScanner (72)
- Struct (28)
- Symbol (71)
- Thread (48)
-
Thread
:: Mutex (20) -
Thread
:: Queue (12) - Time (212)
- TracePoint (43)
- UnboundMethod (36)
- Vector (48)
-
WEBrick
:: HTTPRequest (12) - WIN32OLE (36)
-
WIN32OLE
_ TYPE (24) -
WIN32OLE
_ TYPELIB (12)
モジュール
- Enumerable (430)
-
Fiddle
:: Importer (12) - FileUtils (12)
-
JSON
:: Generator :: GeneratorMethods :: Array (12) - Kernel (36)
-
Net
:: HTTPHeader (216) -
OpenURI
:: Meta (12) -
REXML
:: StreamListener (12) -
Rake
:: TaskManager (48) - TSort (70)
キーワード
- & (12)
- * (24)
- + (12)
- - (12)
- << (36)
- <=> (24)
- == (24)
- [] (72)
- []= (48)
- abbrev (12)
-
absolute
_ path (12) - add (24)
-
add
_ attribute (12) -
add
_ dependency (12) -
add
_ development _ dependency (12) -
add
_ field (12) -
add
_ runtime _ dependency (12) -
alias
_ method (4) - all? (21)
- antisymmetric? (7)
- any? (39)
- anybits? (8)
-
append
_ as _ bytes (1) - arity (36)
-
array
_ nl (12) -
array
_ nl= (12) - at (12)
- attr (12)
-
attr
_ accessor (4) -
attr
_ reader (4) -
attr
_ writer (4) -
attribute
_ of (12) -
attributes
_ of (12) -
base
_ label (12) - basename (12)
- bind (12)
- body (24)
- body= (12)
-
body
_ stream (12) -
body
_ stream= (12) - bsearch (48)
-
bsearch
_ index (20) -
by
_ col (12) -
by
_ col! (12) -
by
_ col _ or _ row (12) -
by
_ col _ or _ row! (12) -
by
_ row (12) -
by
_ row! (12) - bytebegin (2)
- byteend (2)
- byteindex (3)
- byteoffset (6)
- byterindex (3)
- bytes (50)
- bytesize (12)
- byteslice (36)
-
callee
_ id (12) - casecmp (12)
- casecmp? (9)
- children (19)
- chunk (24)
-
class
_ variables (12) - classify (12)
- cleanpath (12)
- coerce (60)
- collect (36)
- collect! (24)
- collect2 (24)
-
collect
_ concat (24) - combination (24)
- compact (16)
- compact! (12)
-
compare
_ by _ identity (12) -
compare
_ by _ identity? (12) - concat (33)
- constants (12)
-
content
_ type (24) -
content
_ type= (12) - converters (12)
- convpath (12)
- count (36)
- crypt (12)
-
current
_ scope (12) - curry (34)
- cycle (36)
-
datetime
_ format (12) -
datetime
_ format= (24) - day (12)
-
deconstruct
_ keys (20) - default (12)
-
default
_ event _ sources (12) -
define
_ method (24) -
define
_ singleton _ method (24) - delete (60)
-
delete
_ at (12) -
delete
_ attribute (12) -
delete
_ if (36) - difference (7)
- dig (30)
- directory? (12)
- disasm (12)
- disassemble (12)
- display (12)
-
do
_ rubygems _ update (12) - drop (12)
-
drop
_ while (48) - each (72)
-
each
_ byte (72) -
each
_ child (24) -
each
_ element _ with _ attribute (12) -
each
_ entry (39) -
each
_ index (12) -
each
_ key (24) -
each
_ name (12) -
each
_ strongly _ connected _ component (23) -
each
_ strongly _ connected _ component _ from (23) - eager (6)
- eigensystem (12)
- empty? (93)
-
end
_ with? (6) - entities (12)
- entity (24)
- entitydecl (12)
- entries (7)
-
entrywise
_ product (8) -
enum
_ for (24) - eos? (12)
- eql? (12)
-
error
_ bytes (12) - eval (12)
- event (12)
- except (4)
-
external
_ id (12) -
family
_ addrinfo (24) - fdatasync (12)
- fetch (108)
-
fetch
_ values (22) - fill (24)
- filter (28)
- filter! (21)
-
filter
_ map (6) -
find
_ all (12) -
find
_ index (36) - first (36)
-
first
_ column (7) -
first
_ lineno (19) -
flat
_ map (24) - flatten (24)
- flatten! (12)
- force (12)
- friday? (12)
- ftype (12)
- get (12)
-
get
_ byte (12) -
get
_ fields (12) - getbyte (48)
- getgm (12)
- gets (12)
- getutc (12)
- grep (12)
-
grep
_ v (10) -
group
_ by (12) -
hadamard
_ product (8) - hash (12)
-
header
_ converters (12) - headers (24)
- helpfile (12)
- hstack (12)
- imaginary (12)
- import (12)
-
in
_ namespace (12) -
incomplete
_ input? (12) - index (36)
-
initialize
_ copy (12) - inject (24)
- insert (12)
- inspect (37)
-
install
_ rb (12) -
instance
_ methods (12) -
instance
_ variables (12) -
instruction
_ sequence (7) - intern (12)
- intersect? (4)
- intersection (6)
- isatty (12)
- join (12)
-
keep
_ if (31) - key (12)
- key? (24)
- keys (12)
- label (12)
- last (24)
-
last
_ column (7) -
last
_ lineno (7) - lazy (24)
- length (12)
- lex (12)
- loader= (12)
-
local
_ variable _ get (12) -
local
_ variable _ set (12) - log (24)
-
main
_ type (12) - map (36)
- map! (24)
- map2 (12)
- match? (9)
- max (42)
-
max
_ by (48) - mday (12)
- members (15)
- merge (12)
- merge! (12)
-
method
_ id (12) - methods (12)
- min (42)
-
min
_ by (48) - minmax (12)
-
minmax
_ by (24) - mode (12)
-
module
_ function (24) - monday? (12)
- name (41)
-
named
_ captures (12) - names (24)
- namespace (12)
- namespaces (12)
-
next
_ values (12) -
next
_ year (12) - none? (7)
-
num
_ bytes (12) -
ole
_ query _ interface (12) - one? (21)
-
original
_ name (24) - pack (21)
- parameters (24)
- parse (12)
- path (24)
- peek (12)
-
peek
_ values (12) - peep (12)
- permutation (24)
- pop (12)
- post (12)
- prefix (12)
- prefixes (12)
-
pretty
_ print (36) -
pretty
_ print _ cycle (12) -
prev
_ year (12) -
primitive
_ convert (48) -
primitive
_ errinfo (12) - priority (12)
- priority= (12)
- private (36)
-
private
_ instance _ methods (12) - product (24)
-
prompt
_ mode (12) -
proxy
_ basic _ auth (12) -
psych
_ y (12) -
psych
_ yaml _ as (4) - public (24)
- push (12)
- putback (12)
- query (12)
- read (12)
-
read
_ body (24) - readbyte (36)
- readline (12)
- readlines (12)
- reduce (24)
- reject (48)
- reject! (36)
-
relative
_ path _ from (12) -
repeated
_ combination (24) -
repeated
_ permutation (24) - replace (12)
-
request
_ body _ permitted? (12) -
required
_ ruby _ version (12) -
required
_ ruby _ version= (12) -
required
_ rubygems _ version (12) -
required
_ rubygems _ version= (12) -
respond
_ to _ missing? (12) -
response
_ body _ permitted? (12) -
reverse
_ each (24) - rindex (36)
- rotate (12)
- rotate! (12)
-
ruby2
_ keywords (12) -
ruby
_ opts (12) -
ruby
_ opts= (12) -
rubygems
_ version (12) -
rubygems
_ version= (12) - sample (24)
-
satisfied
_ by? (12) - saturday? (12)
- scan (12)
- scrub (12)
- scrub! (12)
- select (48)
- select! (36)
-
set
_ content _ type (12) -
set
_ encoding _ by _ bom (6) - setbyte (12)
- setproperty (24)
- shift (36)
-
singleton
_ methods (12) - size (36)
-
skew
_ symmetric? (7) - slice (12)
- slice! (24)
-
slice
_ after (22) -
slice
_ before (36) -
slice
_ when (11) - sort (24)
- sort! (24)
-
sort
_ by (24) -
sort
_ by! (24) - split (24)
- start (36)
-
start
_ with? (6) - step (62)
- sticky? (12)
- store (12)
- strftime (12)
-
strongly
_ connected _ components (12) -
sub
_ type (12) -
subdomain
_ of? (12) - sum (18)
- summarize (24)
-
summary
_ indent (12) -
summary
_ indent= (12) -
summary
_ width (12) -
summary
_ width= (12) - sunday? (12)
- symlink? (12)
- synchronize (12)
-
synthesize
_ file _ task (12) - system (12)
- syswrite (12)
- take (36)
-
take
_ while (60) - tally (10)
- tasks (24)
-
thread
_ variable _ set (12) - thursday? (12)
-
to
_ a (151) -
to
_ ary (36) -
to
_ binary (10) -
to
_ csv (12) -
to
_ enum (24) -
to
_ h (38) -
to
_ json (36) -
to
_ proc (18) -
to
_ ruby (24) -
to
_ s (36) -
to
_ sym (12) - tokenize (12)
-
top
_ level _ tasks (12) - transform (12)
-
transform
_ keys (20) -
transform
_ keys! (20) - transpose (12)
-
try
_ lock (12) - tsort (12)
- tty? (12)
-
tty
_ output= (12) - tuesday? (12)
- type (7)
-
type
_ params (12) - union (7)
- uniq (24)
- uniq! (12)
- unpack (12)
- unshift (12)
- update (12)
-
values
_ at (36) - vstack (12)
- wday (12)
- wednesday? (12)
-
with
_ index (36) -
with
_ object (24) - write (12)
-
yaml
_ as (4) - yday (12)
- year (12)
- yield (12)
-
yield
_ self (16) - zip (48)
- | (12)
検索結果
先頭5件
-
Matrix
# skew _ symmetric? -> bool (15207.0) -
行列が反対称行列 (交代行列、歪〔わい〕対称行列とも) ならば true を返します。
... true を返します。
@raise ExceptionForMatrix::ErrDimensionMismatch 行列が正方行列でない場合に発生します
//emlist[][ruby]{
require 'matrix'
Matrix[[0, -2, Complex(1, 3)], [2, 0, 5], [-Complex(1, 3), -5, 0]].antisymmetric? # => true
Matrix.empty.antisymmetric? # => true
Mat......rix[[1, 2, 3], [4, 5, 6], [7, 8, 9]].antisymmetric? # => false
# 対角要素が違う
Matrix[[1, -2, 3], [2, 0, 6], [-3, -6, 0]].antisymmetric? # => false
# 符号が違う
Matrix[[0, 2, -3], [2, 0, 6], [-3, 6, 0]].antisymmetric? # => false
//}... -
REXML
:: DocType # entity(name) -> String | nil (15207.0) -
name という実体参照名を持つ実体を文字列で返します。
...XML::Entity#unnormalized 参照)
された文字列が返されます。
name という名前を持つ実体が存在しない場合には nil を返します。
@param name 実体参照名(文字列)
//emlist[][ruby]{
doctype = REXML::Document.new(<<EOS).doctype
<!DOCTYPE foo [
<!ENTITY bar "b......arbarbarbar">
]>
EOS
p doctype.entity("bar") # => "barbarbar"
p doctype.entity("foo") # => nil
//}... -
Rake
:: TaskManager # synthesize _ file _ task(task _ name) -> Rake :: FileTask | nil (15207.0) -
与えられたタスク名をもとにファイルタスクを合成します。
...成します。
@param task_name タスク名を指定します。
@return 与えられたタスク名と同名のファイルが存在する場合は、ファイルタスクを作成して返します。
そうでない場合は nil を返します。
@raise RuntimeError タスクを合......。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do |task|
task.application.synthesize_file_task("sample_file") # => nil
IO.write("sample_file", "")
task.application.synthesize_file_task("sample_file") # => <Rake::FileTask sample_fil... -
Struct
# deconstruct _ keys(array _ of _ names) -> Hash (15207.0) -
self のメンバの名前と値の組を Hash で返します。
...array_of_names 返り値に含めるメンバの名前の配列を指定します。nil の場合は全てのメンバを意味します。
//emlist[例][ruby]{
Customer = Struct.new(:name, :address, :zip)
joe = Customer.new("Joe Smith", "123 Maple, Anytown NC", 12345)
h = joe.deconstruct_keys([:z......12345, :address=>"123 Maple, Anytown NC"}
# 引数が nil の場合は全てのメンバを返します。
h = joe.deconstruct_keys(nil)
h # => {:name=>"Joseph Smith, Jr.", :address=>"123 Maple, Anytown NC", :zip=>12345}
//}
[注意] 本メソッドの記述は Struct の下位クラスのイン......スタンスに対して呼び
出す事を想定しています。Struct.new は Struct の下位クラスを作成する点に
注意してください。
@see d:spec/pattern_matching#matching_non_primitive_objects... -
TSort
# strongly _ connected _ components -> Array (15207.0) -
強連結成分の集まりを配列の配列として返します。 この配列は子から親に向かってソートされています。 各要素は強連結成分を表す配列です。
...t[使用例][ruby]{
require 'tsort'
class Hash
include TSort
alias tsort_each_node each_key
def tsort_each_child(node, &block)
fetch(node).each(&block)
end
end
non_sort = {1=>[2], 2=>[3, 4], 3=>[2], 4=>[]}
p non_sort.strongly_connected_components
#=> [[4], [2, 3], [1]]
//}
@see TSort.......strongly_connected_components... -
Gem
:: Specification # rubygems _ version=(version) (15201.0) -
この Gem パッケージを作成した RubyGems のバージョンをセットします。 この属性は Gem パッケージが作成された時に自動的にセットされます。
...この Gem パッケージを作成した RubyGems のバージョンをセットします。
この属性は Gem パッケージが作成された時に自動的にセットされます。
@param version RubyGems のバージョンを指定します。... -
JSON
:: Generator :: GeneratorMethods :: Array # to _ json(state _ or _ hash = nil) -> String (15107.0) -
自身から生成した JSON 形式の文字列を返します。
...。
@param state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の引数と同じ Hash を
指定します。
//emlist[例][ruby]{
require "jso......n"
[1, 2, 3].to_json # => "[1,2,3]"
//}... -
RubyVM
:: AbstractSyntaxTree :: Node # first _ column -> Integer (15107.0) -
ソースコード中で、self を表すテキストが最初に現れる列番号を返します。
...ソースコード中で、self を表すテキストが最初に現れる列番号を返します。
列番号は0-originで、バイト単位で表されます。
//emlist[][ruby]{
node = RubyVM::AbstractSyntaxTree.parse('1 + 2')
p node.first_column # => 0
//}... -
RubyVM
:: AbstractSyntaxTree :: Node # first _ lineno -> Integer (15107.0) -
ソースコード中で、self を表すテキストが最初に現れる行番号を返します。
...ソースコード中で、self を表すテキストが最初に現れる行番号を返します。
行番号は1-originです。
//emlist[][ruby]{
node = RubyVM::AbstractSyntaxTree.parse('1 + 2')
p node.first_lineno # => 1
//}... -
RubyVM
:: AbstractSyntaxTree :: Node # inspect -> String (15107.0) -
self のデバッグ用の情報を含んだ文字列を返します。
...self のデバッグ用の情報を含んだ文字列を返します。
//emlist[][ruby]{
node = RubyVM::AbstractSyntaxTree.parse('1 + 1')
puts node.inspect
# => #<RubyVM::AbstractSyntaxTree::Node:SCOPE@1:0-1:5>
//}... -
RubyVM
:: AbstractSyntaxTree :: Node # last _ column -> Integer (15107.0) -
ソースコード中で、self を表すテキストが最後に現れる列番号を返します。
...ソースコード中で、self を表すテキストが最後に現れる列番号を返します。
列番号は0-originで、バイト単位で表されます。
//emlist[][ruby]{
node = RubyVM::AbstractSyntaxTree.parse('1 + 1')
p node.last_column # => 5
//}...