7088件ヒット
[1-100件を表示]
(0.149秒)
別のキーワード
ライブラリ
- ビルトイン (4611)
- abbrev (12)
- bigdecimal (24)
-
bigdecimal
/ util (36) - csv (24)
- date (64)
- etc (12)
-
fiddle
/ import (36) - json (144)
-
json
/ add / date (12) -
json
/ add / date _ time (12) -
json
/ add / rational (12) - logger (48)
- matrix (629)
- mkmf (36)
-
net
/ http (240) - openssl (12)
- optparse (60)
- pathname (399)
- prime (96)
- rake (36)
-
rexml
/ document (252) -
rubygems
/ custom _ require (12) -
rubygems
/ installer (24) -
rubygems
/ requirement (24) -
rubygems
/ specification (36) - set (18)
- socket (12)
- stringio (74)
- strscan (36)
- tsort (33)
- win32ole (12)
クラス
-
ARGF
. class (12) - Addrinfo (12)
- Array (577)
- BigDecimal (24)
-
CSV
:: Row (12) -
CSV
:: Table (12) - Class (12)
- Complex (108)
- Data (18)
- Date (74)
- DateTime (14)
- Dir (19)
-
Encoding
:: Converter (72) - Enumerator (163)
-
Enumerator
:: Lazy (308) - Exception (12)
- File (64)
-
File
:: Stat (84) - Float (387)
-
Gem
:: Installer (24) -
Gem
:: Requirement (24) -
Gem
:: Specification (36) - Hash (267)
- IO (168)
- Integer (120)
-
JSON
:: State (36) - Logger (48)
- MatchData (206)
- Matrix (545)
-
Matrix
:: LUPDecomposition (12) - Method (12)
- Module (252)
-
Net
:: HTTP (216) - NilClass (24)
- Numeric (176)
- Object (75)
-
OpenSSL
:: ASN1 :: ASN1Data (12) - OptionParser (60)
- Pathname (399)
- Prime (36)
-
Prime
:: PseudoPrimeGenerator (48) - Proc (12)
-
REXML
:: Attribute (12) -
REXML
:: Attributes (60) -
REXML
:: CData (24) -
REXML
:: DocType (12) -
REXML
:: Element (108) -
REXML
:: Elements (36) -
Rake
:: FileList (12) -
Rake
:: InvocationChain (24) - Random (36)
- Range (66)
- Rational (315)
- Regexp (33)
-
RubyVM
:: InstructionSequence (34) - Set (24)
- String (413)
- StringIO (74)
- StringScanner (36)
- Struct (31)
- Symbol (9)
- Thread (24)
-
Thread
:: Backtrace :: Location (72) - Time (24)
- TracePoint (12)
- UnboundMethod (12)
- Vector (72)
-
WIN32OLE
_ TYPELIB (12)
モジュール
- Enumerable (448)
-
Fiddle
:: Importer (36) - GC (12)
-
JSON
:: Generator :: GeneratorMethods :: Array (12) -
JSON
:: Generator :: GeneratorMethods :: FalseClass (12) -
JSON
:: Generator :: GeneratorMethods :: Float (12) -
JSON
:: Generator :: GeneratorMethods :: Hash (12) -
JSON
:: Generator :: GeneratorMethods :: Integer (12) -
JSON
:: Generator :: GeneratorMethods :: NilClass (12) -
JSON
:: Generator :: GeneratorMethods :: Object (12) -
JSON
:: Generator :: GeneratorMethods :: String (12) -
JSON
:: Generator :: GeneratorMethods :: TrueClass (12) - Kernel (48)
-
Net
:: HTTPHeader (24) - TSort (33)
キーワード
- % (26)
- * (36)
- ** (24)
- + (43)
- -@ (21)
-
/ (35) - < (12)
- << (12)
- <= (12)
- <=> (48)
- == (51)
- === (18)
- > (12)
- >= (12)
- >> (12)
- [] (120)
- []= (7)
- abbrev (12)
-
absolute
_ path (24) - accept (12)
-
add
_ attribute (24) -
add
_ attributes (12) -
add
_ dependency (12) -
add
_ development _ dependency (12) -
add
_ element (12) -
add
_ runtime _ dependency (12) - adjugate (12)
- all? (15)
- allocate (12)
-
allow
_ nan? (12) - angle (24)
-
angle
_ with (12) - antisymmetric? (7)
- any? (16)
- append (12)
-
append
_ features (12) - arg (24)
- atime (36)
- attr (36)
-
attr
_ accessor (12) -
attr
_ reader (12) -
attr
_ writer (12) - attribute (12)
-
attribute
_ of (12) - autoload (12)
-
backtrace
_ locations (36) -
base
_ label (12) - basename (12)
- begin (12)
- bind (12)
- binread (12)
- birthtime (12)
- bsearch (24)
-
bsearch
_ index (10) - bytebegin (2)
- byteend (2)
- byteindex (3)
- byteoffset (6)
- byterindex (3)
- bytes (7)
- captures (12)
- ceil (28)
- chain (7)
- children (12)
- chown (12)
- chunk (36)
-
chunk
_ while (12) - cleanpath (12)
- coerce (24)
-
cofactor
_ expansion (12) - collect (60)
- collect! (26)
- collect2 (12)
-
collect
_ concat (12) - column (24)
- combination (24)
- component (12)
- concat (66)
- configure (12)
- conjugate (12)
-
const
_ source _ location (12) - convpath (12)
-
create
_ makefile (12) - ctime (24)
- cycle (24)
-
datetime
_ format (12) -
datetime
_ format= (12) - deconstruct (5)
-
deconstruct
_ keys (9) - delete (12)
-
delete
_ all (24) -
delete
_ at (12) -
delete
_ attribute (12) -
delete
_ if (24) - denominator (48)
-
deprecate
_ constant (12) -
destination
_ encoding (12) - det (12)
- detect (12)
- determinant (12)
- directory? (12)
- dirname (12)
- divmod (12)
- downto (12)
- drop (12)
-
drop
_ while (24) - each (204)
-
each
_ byte (36) -
each
_ char (24) -
each
_ child (31) -
each
_ codepoint (12) -
each
_ cons (12) -
each
_ element _ with _ attribute (12) -
each
_ entry (27) -
each
_ grapheme _ cluster (8) -
each
_ index (12) -
each
_ key (12) -
each
_ line (84) -
each
_ pair (12) -
each
_ slice (12) -
each
_ strongly _ connected _ component (11) -
each
_ strongly _ connected _ component _ from (11) -
each
_ value (12) -
each
_ with _ index (60) -
each
_ with _ object (12) -
egrep
_ cpp (24) - eigen (12)
- eigensystem (12)
- element (12)
- empty? (9)
- end (12)
- entries (12)
-
entrywise
_ product (8) -
enum
_ for (24) - eql? (39)
-
family
_ addrinfo (12) - fatal (24)
- fdatasync (12)
- fdiv (24)
- feed (12)
-
fetch
_ values (22) - field? (12)
- filter (35)
- filter! (14)
-
filter
_ map (12) - find (12)
-
find
_ all (24) -
find
_ index (60) -
flat
_ map (12) - flatten (36)
- flatten! (24)
- flock (12)
- floor (29)
- fnmatch (12)
-
form
_ data= (12) -
formatted
_ program _ filename (12) -
garbage
_ collect (12) - get (24)
- get2 (24)
-
get
_ attribute (12) -
get
_ attribute _ ns (12) -
get
_ text (12) - glob (16)
- grep (36)
-
grep
_ v (34) - gsub (48)
- gsub! (48)
-
hadamard
_ product (8) - hash (3)
- head (12)
- head2 (24)
- hstack (12)
- index (67)
- inspect (36)
- install (12)
- isatty (12)
- join (12)
-
keep
_ if (24) - key (12)
- label (12)
-
laplace
_ expansion (12) - lazy (12)
- lines (7)
- lstat (12)
- lup (12)
-
lup
_ decomposition (12) - magnitude (12)
- map (60)
- map! (26)
- match (48)
- match? (39)
-
max
_ by (24) - member? (12)
- merge (12)
-
min
_ by (24) -
minmax
_ by (12) - minor (24)
- modulo (12)
- mtime (12)
-
named
_ captures (12) - namespace (12)
- negative? (29)
- next (12)
-
next
_ float (11) -
next
_ values (12) -
next
_ year (12) - none? (15)
- norm (12)
- numerator (48)
- offset (24)
- on (36)
- one? (15)
- pack (21)
- path (56)
- pathconf (12)
- pathmap (12)
- peek (12)
-
peek
_ values (12) - permutation (24)
- phase (24)
- positive? (19)
- post (24)
- post2 (24)
-
post
_ match (12) -
pre
_ match (12) -
prepend
_ features (12) -
prev
_ float (11) -
prev
_ year (12) -
prime
_ division (24) -
primitive
_ convert (48) - printf (12)
- private (48)
-
private
_ class _ method (24) -
private
_ constant (12) -
private
_ instance _ methods (12) -
private
_ method _ defined? (12) - quo (24)
- r (12)
- rand (36)
- rationalize (108)
- realdirpath (12)
- realpath (24)
- rect (12)
- rectangular (12)
- regular? (12)
- reject (48)
- reject! (24)
-
relative
_ path _ from (12) -
remove
_ const (12) - reopen (24)
-
repeated
_ combination (24) -
repeated
_ permutation (24) -
request
_ get (24) -
request
_ head (24) -
request
_ post (24) - require (12)
-
respond
_ to _ missing? (12) -
reverse
_ each (14) - rewind (12)
- rindex (24)
- rotate (12)
- rotate! (12)
- round (37)
- row (24)
-
satisfied
_ by? (12) - scan (24)
- select (60)
- select! (24)
-
send
_ request (12) - separator (12)
-
set
_ form _ data (12) - size (13)
-
skew
_ symmetric? (7) -
slice
_ after (46) -
slice
_ before (60) -
slice
_ when (23) - solve (12)
-
sort
_ by (12) -
sort
_ by! (12) -
source
_ location (36) - split (12)
- stat (12)
- step (100)
- strftime (12)
- struct (12)
- sub (60)
- sub! (36)
-
sub
_ ext (12) - symlink? (12)
- take (12)
-
take
_ while (48) - terminate (12)
- text (12)
- then (7)
- times (12)
-
to
_ a (24) -
to
_ binary (10) -
to
_ d (36) -
to
_ enum (24) -
to
_ f (36) -
to
_ i (24) -
to
_ json (144) -
to
_ path (8) -
to
_ r (36) -
to
_ s (48) - tr (24)
-
tr
_ s (12) -
tr
_ s! (12) - trace (12)
-
transform
_ keys (8) -
transform
_ keys! (8) -
transform
_ values (9) -
transform
_ values! (9) - truncate (96)
-
tsort
_ each (11) - tty? (12)
- union (12)
- unpack (12)
- unpack1 (9)
- update (24)
- upto (12)
- value (24)
-
values
_ at (60) - vstack (12)
- with (3)
-
with
_ index (36) -
with
_ object (24) -
yield
_ self (8) - zip (24)
検索結果
先頭5件
-
RubyVM
:: InstructionSequence # absolute _ path -> String | nil (32207.0) -
self が表す命令シーケンスの絶対パスを返します。
...= RubyVM::InstructionSequence.compile('num = 1 + 2')
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
iseq.absolute_path
# => nil
例2: RubyVM::InstructionSequence.compile_file を使用した場合
# /tmp/method.rb
def hello
puts "hello, world"
end
# irb
> iseq = Ruby......VM::InstructionSequence.compile_file('/tmp/method.rb')
> iseq.absolute_path # => "/tmp/method.rb"
@see RubyVM::InstructionSequence#path... -
RubyVM
:: InstructionSequence # path -> String (32207.0) -
self が表す命令シーケンスの相対パスを返します。
...= RubyVM::InstructionSequence.compile('num = 1 + 2')
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
iseq.path
# => "<compiled>"
例2: RubyVM::InstructionSequence.compile_file を使用した場合
# /tmp/method.rb
def hello
puts "hello, world"
end
# irb
> iseq = Ruby......VM::InstructionSequence.compile_file('method.rb')
> iseq.path # => "method.rb"
@see RubyVM::InstructionSequence#absolute_path... -
RubyVM
:: InstructionSequence # to _ binary(extra _ data = nil) -> String (26243.0) -
バイナリフォーマットでシリアライズされたiseqのデータを文字列として返します。 RubyVM::InstructionSequence.load_from_binary メソッドでバイナリデータに対応するiseqオブジェクトを作れます。
...返します。
RubyVM::InstructionSequence.load_from_binary メソッドでバイナリデータに対応するiseqオブジェクトを作れます。
引数の extra_data はバイナリデータと共に保存されます。
RubyVM::InstructionSequence.load_from_binary_extra_data メソッド......せん。他のバージョンや他のアーキテクチャのRubyで作られたバイナリデータは使用できません。
//emlist[例][ruby]{
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
iseq.to_binary("extra_data")
# ※表示の都合上改行しているが実際は改行......\x00\x00\x00\x16\x02\x00\x00\n\x00\x00\x00\x01
# \x00\x00\x00\x03\x00\x00\x00\x05\x00\x00\x00\x84\x01\x00\x00\x88\x01\x00
# \x00\x02\x02\x00\x00x86_64-darwin15\x00*\x00\x00\x00\x00\x00\x00\x00\x01
# \x00\x00\x00\x00\x00\x00\x00\\\x00\x00\x00\x00\x00\x00\x00\x0F\x00\x00\x00
# \x00\x00\x00\x00\x02\x00... -
Rational
# -(other) -> Rational | Float (21331.0) -
差を計算します。
...差を計算します。
@param other 自身から引く数
other に Float を指定した場合は、計算結果を Float で返しま
す。
//emlist[例][ruby]{
r = Rational(3, 4)
r - 1 # => (-1/4)
r - 0.5 # => 0.25
//}... -
Float
# -(other) -> Float (21225.0) -
算術演算子。差を計算します。
...算術演算子。差を計算します。
@param other 二項演算の右側の引数(対象)
//emlist[例][ruby]{
# 差
4.5 - 1.3 # => 3.2
//}... -
Time
# -(time) -> Float (18259.0) -
自身と time との時刻の差を Float で返します。単位は秒です。
...の差を Float で返します。単位は秒です。
@param time 自身との差を算出したい Time オブジェクトを指定します。
//emlist[][ruby]{
p t = Time.local(2000) # => 2000-01-01 00:00:00 +0900
p t2 = t + 2592000 # => 2000-01-31 00:00:00 +0900
p t2 - t... -
Pathname
# relative _ path _ from(base _ directory) -> Pathname (15425.0) -
base_directory から self への相対パスを求め、その内容の新しい Pathname オブジェクトを生成して返します。
...base_directory から self への相対パスを求め、その内容の新しい Pathname
オブジェクトを生成して返します。
パス名の解決は文字列操作によって行われ、ファイルシステムをアクセス
しません。
self が相対パスなら base_directory......
@param base_directory ベースディレクトリを表す Pathname オブジェクトを指定します。
@raise ArgumentError Windows上でドライブが違うなど、base_directory から self への相対パスが求められないときに例外が発生します。
//emlist[例][ruby]{......require 'pathname'
path = Pathname.new("/tmp/foo")
base = Pathname.new("/tmp")
path.relative_path_from(base) # => #<Pathname:foo>
//}... -
Float
# -@ -> Float (15353.0) -
単項演算子の - です。 self の符号を反転させたものを返します。
...単項演算子の - です。
self の符号を反転させたものを返します。
//emlist[例][ruby]{
- 1.2 # => -1.2
- -1.2 # => 1.2
//}... -
Rational
# -@ -> Rational (15335.0) -
単項演算子の - です。 self の符号を反転させたものを返します。
...単項演算子の - です。
self の符号を反転させたものを返します。
//emlist[例][ruby]{
r = Rational(3, 4)
- r # => (-3/4)
//}...