24284件ヒット
[1-100件を表示]
(0.124秒)
別のキーワード
種類
クラス
-
ARGF
. class (300) - Array (2216)
- BasicObject (168)
- Binding (65)
- Class (88)
- Complex (480)
- Data (54)
- Dir (578)
- Encoding (222)
-
Encoding
:: Converter (264) -
Encoding
:: InvalidByteSequenceError (24) -
Encoding
:: UndefinedConversionError (12) - Enumerator (212)
-
Enumerator
:: Chain (7) -
Enumerator
:: Lazy (398) -
Enumerator
:: Yielder (30) - Exception (152)
- FalseClass (60)
- Fiber (66)
- File (588)
-
File
:: Stat (516) - Float (526)
- FrozenError (20)
- Hash (1146)
- IO (820)
- Integer (818)
- KeyError (28)
- MatchData (290)
- Method (271)
- Module (1071)
- Mutex (10)
- NilClass (163)
- Numeric (563)
- Object (991)
- Proc (207)
- Random (182)
- Range (440)
- Rational (309)
- Refinement (4)
- Regexp (297)
- RubyVM (37)
-
RubyVM
:: AbstractSyntaxTree :: Node (49) -
RubyVM
:: InstructionSequence (234) - Set (141)
- SignalException (60)
- String (2150)
- Struct (335)
- Symbol (83)
- SystemCallError (12)
- Thread (258)
-
Thread
:: Backtrace :: Location (84) -
Thread
:: ConditionVariable (20) -
Thread
:: Mutex (50) -
Thread
:: Queue (98) -
Thread
:: SizedQueue (50) - ThreadGroup (36)
- Time (855)
- TracePoint (225)
- TrueClass (60)
- UnboundMethod (156)
- UncaughtThrowError (33)
モジュール
- Comparable (87)
- Enumerable (1424)
- FileTest (174)
- GC (108)
-
GC
:: Profiler (48) - Kernel (1627)
- Marshal (72)
- Math (276)
- ObjectSpace (120)
- Process (92)
-
RubyVM
:: AbstractSyntaxTree (30) -
RubyVM
:: MJIT (21) - Signal (24)
- Warning (10)
キーワード
- ! (12)
- != (12)
- !~ (12)
-
$ $ (12) -
$ & (12) -
$ & # 39; (12) -
$ * (12) -
$ , (12) -
$ -0 (12) -
$ -F (12) -
$ -I (12) -
$ -K (5) -
$ -v (12) -
$ -w (12) -
$ . (12) -
$ / (12) -
$ 0 (12) -
$ 1 (12) -
$ 10 (12) -
$ 11 (12) -
$ 2 (12) -
$ 3 (12) -
$ 4 (12) -
$ 5 (12) -
$ 6 (12) -
$ 7 (12) -
$ 8 (12) -
$ 9 (12) -
$ : (12) -
$ ; (12) -
$ = (12) -
$ > (12) -
$ KCODE (5) -
$ LOAD _ PATH (12) -
$ PROGRAM _ NAME (12) -
$ SAFE (12) -
$ VERBOSE (12) -
$ _ (12) -
$ ` (12) -
$ stderr (12) -
$ stdin (12) -
$ stdout (12) -
$ ~ (12) - % (62)
- & (63)
- * (84)
- ** (48)
- + (94)
- +@ (22)
- -@ (55)
-
/ (47) - < (58)
- << (65)
- <= (58)
- <=> (138)
- == (222)
- === (119)
- =~ (40)
- > (58)
- >= (58)
- >> (26)
- ARGF (12)
- ARGV (12)
- Array (12)
-
CESU
_ 8 (6) - CompatibilityError (12)
- Complex (36)
- ConditionVariable (10)
- ConverterNotFoundError (12)
- DATA (12)
- DEBUG (12)
- DEBUG= (12)
- DEFAULT (9)
-
DEFAULT
_ PARAMS (12) - E (12)
- EXXX (12)
- FALSE (8)
- Float (12)
- GC (12)
- Hash (12)
-
INSTRUCTION
_ NAMES (12) - Integer (12)
- InvalidByteSequenceError (12)
-
MAJOR
_ VERSION (12) -
MINOR
_ VERSION (12) - NIL (8)
- Numeric (12)
- OPTS (12)
- PI (12)
- Proc (12)
- ROUNDS (7)
-
RUBY
_ COPYRIGHT (12) -
RUBY
_ DESCRIPTION (12) -
RUBY
_ ENGINE (12) -
RUBY
_ ENGINE _ VERSION (10) -
RUBY
_ PATCHLEVEL (12) -
RUBY
_ PLATFORM (12) -
RUBY
_ RELEASE _ DATE (12) -
RUBY
_ REVISION (12) -
RUBY
_ VERSION (12) - Rational (12)
- RegexpError (12)
-
SCRIPT
_ LINES _ _ (12) -
SHIFT
_ JIS (12) - STDERR (12)
- STDIN (12)
- STDOUT (12)
-
Shift
_ JIS (12) - SizedQueue (10)
- Stat (12)
- String (24)
- TRUE (8)
- Thread (12)
- Time (12)
- UndefinedConversionError (12)
- [] (321)
- []= (120)
- ^ (51)
-
_ _ callee _ _ (12) -
_ _ id _ _ (12) -
_ _ method _ _ (12) -
_ _ send _ _ (24) -
_ dump (12) -
_ id2ref (12) -
_ load (12) - ` (12)
- abort (24)
-
abort
_ on _ exception (24) - abs (57)
- abs2 (24)
-
absolute
_ path (36) -
absolute
_ path? (6) - acos (12)
- add (15)
- add? (3)
-
add
_ trace _ func (12) - advise (12)
-
alias
_ method (12) - aliases (12)
- alive? (4)
- all? (53)
-
all
_ symbols (12) - allbits? (8)
- allocate (12)
- ancestors (12)
- angle (36)
- any? (62)
- anybits? (8)
- append (8)
-
append
_ as _ bytes (1) -
append
_ features (12) - arg (36)
- argv (12)
- argv0 (12)
- arity (36)
-
ascii
_ compatible? (12) -
asciicompat
_ encoding (24) - asctime (12)
- asin (12)
- assoc (24)
- at (65)
-
at
_ exit (12) - atan (12)
- atan2 (12)
- atime (36)
- attr (36)
-
attr
_ accessor (12) -
attr
_ reader (12) -
attr
_ writer (12) - autoclose? (12)
- autoload (24)
- autoload? (24)
- b (12)
- backtrace (24)
-
backtrace
_ locations (36) -
base
_ label (24) - basename (12)
- begin (24)
- between? (12)
- bind (12)
-
bind
_ call (12) - binding (36)
- binmode (24)
- binread (12)
- binwrite (12)
- birthtime (23)
-
bit
_ length (12) - blksize (12)
-
block
_ given? (12) - blockdev? (12)
- blocks (12)
- broadcast (10)
- bsearch (48)
-
bsearch
_ index (20) - bytebegin (2)
- byteend (2)
- byteindex (3)
- byteoffset (6)
- byterindex (3)
- bytes (43)
- bytesize (12)
- byteslice (36)
- call (36)
-
callee
_ id (12) - caller (36)
-
caller
_ locations (24) - capitalize (12)
- capitalize! (12)
- captures (12)
- casecmp (24)
- casecmp? (18)
- casefold? (12)
- catch (24)
- categories (1)
- cause (12)
- cbrt (12)
- ceil (54)
- ceildiv (3)
- center (12)
- chain (7)
- chardev? (12)
- chars (24)
- chdir (48)
- children (30)
- chmod (12)
- chomp (24)
- chomp! (12)
- chop (24)
- chop! (12)
- chown (24)
- chr (36)
- chroot (12)
- chunk (36)
-
chunk
_ while (12) - clamp (15)
- class (12)
-
class
_ eval (24) -
class
_ exec (12) -
class
_ variable _ defined? (12) -
class
_ variable _ get (12) -
class
_ variable _ set (12) -
class
_ variables (12) - classify (3)
- clear (61)
- clone (87)
- close (46)
-
close
_ read (12) -
close
_ write (12) - closed? (34)
- codepoints (24)
- coerce (36)
- collect (60)
- collect! (27)
-
collect
_ concat (36) - combination (24)
- compact (25)
- compact! (21)
-
compare
_ by _ identity (12) -
compare
_ by _ identity? (12) - compatible? (12)
- compile (24)
-
compile
_ file (12) -
compile
_ option (12) - concat (42)
- conj (24)
- conjugate (24)
-
const
_ added (3) -
const
_ defined? (12) -
const
_ get (12) -
const
_ set (12) -
const
_ source _ location (12) - constants (24)
- convert (12)
- convpath (12)
-
copy
_ stream (24) - cos (12)
- count (96)
-
count
_ objects (12) - cover? (19)
- crypt (12)
- ctime (48)
- current (4)
- curry (46)
- cycle (48)
- day (12)
- deconstruct (11)
-
deconstruct
_ keys (13) - dedup (3)
- default (24)
-
default
_ external (12) -
default
_ external= (12) -
default
_ internal= (12) -
default
_ proc (12) - define (6)
-
define
_ finalizer (24) -
define
_ method (24) -
define
_ singleton _ method (24) -
defined
_ class (12) - delete (111)
- delete! (12)
- delete? (3)
-
delete
_ at (12) -
delete
_ if (75) -
delete
_ prefix (8) -
delete
_ prefix! (8) -
delete
_ suffix (8) -
delete
_ suffix! (8) - denominator (48)
-
deprecate
_ constant (12) - deq (20)
-
destination
_ encoding (12) - detect (24)
- dev (12)
-
dev
_ major (12) -
dev
_ minor (12) - difference (10)
- dig (30)
- digits (24)
- directory? (12)
- dirname (12)
- disable (36)
- disasm (24)
- disassemble (24)
- disjoint? (3)
- display (12)
- div (24)
- divide (6)
- divmod (24)
- downcase (12)
- downcase! (12)
- downto (24)
- drop (36)
-
drop
_ while (60) - dst? (12)
- dummy? (12)
- dump (36)
- dup (51)
- each (267)
-
each
_ byte (48) -
each
_ char (48) -
each
_ child (46) -
each
_ codepoint (72) -
each
_ cons (24) -
each
_ entry (24) -
each
_ grapheme _ cluster (16) -
each
_ index (24) -
each
_ key (48) -
each
_ line (96) -
each
_ object (48) -
each
_ pair (72) -
each
_ slice (24) -
each
_ value (24) -
each
_ with _ index (24) -
each
_ with _ object (24) - eager (6)
- empty? (67)
- enable (36)
- enabled? (7)
- encode (36)
- encode! (24)
- encoding (12)
- end (24)
-
end
_ with? (18) - entries (43)
-
enum
_ for (48) - eof (12)
- eof? (12)
- eql? (159)
- equal? (36)
- erf (12)
- erfc (12)
-
error
_ bytes (12) -
error
_ char (12) - escape (12)
- eval (48)
-
eval
_ script (7) - even? (12)
- event (12)
- except (8)
- exception (36)
-
exclude
_ end? (12) - exec (48)
- executable? (12)
-
executable
_ real? (24) - exist? (12)
- exists? (27)
- exit (12)
- exit! (12)
- exp (12)
- extend (12)
-
extend
_ object (12) - extended (12)
-
external
_ encoding (12) - extname (12)
- fail (36)
- fatal (12)
- fcntl (12)
- fdatasync (12)
- fdiv (36)
- feed (12)
- fetch (80)
-
fetch
_ values (22) - file (12)
- file? (12)
- filename (12)
- fileno (23)
- fill (72)
- filter (63)
- filter! (28)
-
filter
_ map (18) - find (36)
-
find
_ all (36) -
find
_ index (72) - finish (12)
- finite? (30)
- first (72)
-
first
_ column (7) -
first
_ lineno (19) -
fixed
_ encoding? (12) -
flat
_ map (36) - flatten (27)
- flatten! (15)
- flock (12)
- floor (54)
- flush (12)
- fnmatch (12)
- fnmatch? (12)
-
for
_ fd (12) - force (12)
-
force
_ encoding (12) - foreach (72)
- fork (24)
- format (12)
- freeze (24)
- frexp (12)
- friday? (12)
- frozen? (12)
- ftype (24)
- gamma (12)
-
garbage
_ collect (24) - gcd (12)
- gcdlcm (12)
- getbyte (24)
- getc (12)
- getgm (12)
- getlocal (24)
- gets (48)
- getutc (12)
- getwd (12)
- gid (12)
- glob (24)
-
global
_ variables (12) - gm (24)
- gmt? (12)
-
gmt
_ offset (12) - gmtime (12)
- gmtoff (12)
-
grapheme
_ clusters (16) - grep (36)
-
grep
_ v (34) -
group
_ by (24) - groups (12)
- grpowned? (24)
- gsub (84)
- gsub! (48)
-
has
_ key? (12) -
has
_ value? (12) - hash (123)
- hex (12)
- home (24)
- hour (12)
- hypot (12)
- i (12)
- identical? (12)
- imag (24)
- imaginary (24)
-
import
_ methods (4) - include (24)
- include? (75)
- included (12)
-
included
_ modules (12) -
incomplete
_ input? (12) - index (55)
- infinite? (30)
- inherited (12)
- initialize (12)
-
initialize
_ copy (12) - inject (36)
- ino (12)
-
inplace
_ mode (12) -
inplace
_ mode= (12) - insert (24)
-
insert
_ output (12) - inspect (319)
-
instance
_ eval (24) -
instance
_ exec (12) -
instance
_ method (12) -
instance
_ methods (12) -
instance
_ of? (12) -
instance
_ variable _ defined? (12) -
instance
_ variable _ get (12) -
instance
_ variable _ set (12) -
instance
_ variables (12) -
instruction
_ sequence (7) - integer? (24)
- intern (12)
-
internal
_ encoding (24) - intersect? (4)
- intersection (9)
- invert (12)
-
is
_ a? (12) - isatty (12)
- isdst (12)
- iterator? (12)
- itself (12)
- join (24)
-
keep
_ if (48) - key (12)
- key? (24)
- keys (12)
-
keyword
_ init? (4) -
kind
_ of? (12) - label (24)
- lambda (18)
- lambda? (12)
- last (48)
-
last
_ column (7) -
last
_ error (12) -
last
_ lineno (7) -
last
_ match (24) -
last
_ status (8) -
latest
_ gc _ info (24) - lazy (24)
- lchmod (12)
- lchown (12)
- lcm (12)
- ldexp (12)
- length (73)
- lgamma (12)
- lineno (24)
- lines (24)
- link (12)
- list (24)
- ljust (12)
- load (24)
-
load
_ from _ binary (10) -
load
_ from _ binary _ extra _ data (10) - local (24)
-
local
_ variable _ defined? (12) -
local
_ variable _ get (12) -
local
_ variables (23) -
locale
_ charmap (12) - localtime (24)
- locked? (12)
- log (24)
- log10 (12)
- log2 (12)
- loop (24)
- lstat (24)
- lstrip (12)
- lstrip! (12)
- magnitude (57)
- main (12)
- map (60)
- map! (27)
-
marshal
_ dump (24) -
marshal
_ load (24) - match (48)
- match? (27)
- max (140)
-
max
_ by (48) - mday (12)
- member? (39)
- members (30)
- merge (27)
- merge! (24)
- method (12)
-
method
_ added (12) -
method
_ defined? (12) -
method
_ id (12) -
method
_ missing (12) -
method
_ removed (12) -
method
_ undefined (12) - methods (12)
- min (142)
-
min
_ by (48) - minmax (48)
-
minmax
_ by (24) - mkdir (12)
- mkfifo (10)
- mktime (24)
- mode (12)
-
module
_ eval (24) -
module
_ exec (12) -
module
_ function (36) - modulo (36)
- mon (12)
- monday? (12)
- month (12)
- mtime (36)
- name (53)
- name= (10)
-
name
_ list (12) -
named
_ captures (24) - names (36)
- nan? (12)
- negative? (29)
- nesting (12)
- new (577)
-
new
_ seed (12) - next (36)
- next! (12)
-
next
_ float (11) -
next
_ values (12) - nil? (12)
- nlink (12)
- nobits? (8)
- none? (53)
- nonzero? (12)
- now (12)
- nsec (12)
-
num
_ waiting (10) - numerator (48)
-
object
_ id (12) - oct (12)
- odd? (12)
- of (22)
- offset (24)
- one? (53)
- open (120)
- ord (24)
-
original
_ name (24) - overlap? (2)
- owned? (36)
- owner (24)
- p (12)
- pack (21)
- parameters (31)
- parse (10)
-
parse
_ file (10) - partition (36)
- path (87)
- pause (7)
- peek (12)
-
peek
_ values (12) - permutation (24)
- phase (36)
- pid (12)
- pipe? (12)
- polar (36)
- pop (44)
- pos (24)
- positive? (29)
-
post
_ match (12) - pow (24)
- pp (8)
-
pre
_ match (12) - pread (8)
- pred (12)
- prepend (41)
-
prepend
_ features (12) - prepended (12)
-
prev
_ float (11) -
primitive
_ convert (48) -
primitive
_ errinfo (12) - print (24)
- printf (24)
- priority (12)
- priority= (12)
- private (48)
-
private
_ class _ method (24) -
private
_ constant (12) -
private
_ instance _ methods (12) -
private
_ method _ defined? (12) - proc (19)
- produce (6)
- product (24)
-
proper
_ subset? (3) -
proper
_ superset? (3) -
protected
_ method _ defined? (12) - public (48)
-
public
_ class _ method (24) -
public
_ constant (12) -
public
_ instance _ method (12) -
public
_ method (12) -
public
_ method _ defined? (12) -
public
_ send (24) - push (12)
- putback (24)
- putc (24)
- puts (12)
- pwd (12)
- pwrite (8)
- quo (36)
- quote (12)
- raise (54)
-
raised
_ exception (12) - rand (96)
- rassoc (24)
- rationalize (108)
-
raw
_ data (12) -
raw
_ seed (2) - rdev (12)
-
rdev
_ major (12) -
rdev
_ minor (12) - read (24)
- readable? (24)
-
readable
_ real? (12) - readbyte (24)
- readchar (12)
- readline (12)
- readlines (84)
- readlink (12)
- real (24)
- real? (24)
- realpath (12)
- receiver (29)
- rect (36)
- rectangular (36)
- reduce (36)
- refine (12)
- regexp (12)
- rehash (12)
- reject (108)
- reject! (75)
- remainder (24)
-
remove
_ class _ variable (12) -
remove
_ const (12) -
remove
_ instance _ variable (12) -
remove
_ method (12) - rename (12)
- reopen (36)
-
repeated
_ combination (24) -
repeated
_ permutation (24) - replace (39)
- replacement (12)
- replacement= (12)
- replicate (12)
- report (12)
-
report
_ on _ exception (9) - require (12)
-
require
_ relative (12) -
resolve
_ feature _ path (1) -
respond
_ to? (12) -
respond
_ to _ missing? (12) - restore (12)
- result (12)
- resume (19)
-
return
_ value (12) - reverse (24)
- reverse! (24)
-
reverse
_ each (52) - rewind (24)
- rindex (48)
- rjust (12)
- rmdir (12)
- rotate (12)
- rotate! (12)
- round (69)
- rpartition (12)
- rstrip (12)
- rstrip! (12)
-
ruby2
_ keywords (18) -
ruby2
_ keywords _ hash? (6) - run (12)
-
safe
_ level (7) - sample (48)
- saturday? (12)
- scan (24)
- scrub (36)
- scrub! (36)
-
search
_ convpath (12) - sec (12)
- seed (12)
- seek (12)
- select (108)
- select! (48)
- self (12)
- send (24)
-
set
_ backtrace (12) -
set
_ encoding _ by _ bom (6) -
set
_ trace _ func (24) - setbyte (12)
- setgid? (24)
- setproctitle (12)
- setuid? (24)
- shift (56)
- shuffle (24)
- shuffle! (24)
- signal (10)
- signm (12)
- signo (12)
- sin (12)
-
singleton
_ class (12) -
singleton
_ class? (12) -
singleton
_ method (12) -
singleton
_ method _ added (12) -
singleton
_ method _ removed (12) -
singleton
_ method _ undefined (12) -
singleton
_ methods (12) - size (133)
- size? (24)
- skip (12)
- sleep (36)
- slice (123)
- slice! (108)
-
slice
_ after (46) -
slice
_ before (60) -
slice
_ when (23) - socket? (24)
- sort (48)
- sort! (24)
-
sort
_ by (24) -
sort
_ by! (24) - source (12)
-
source
_ encoding (12) -
source
_ location (43) - spawn (48)
- split (31)
- sprintf (12)
- sqrt (20)
- squeeze (12)
- squeeze! (12)
- srand (24)
- start (12)
-
start
_ with? (18) - stat (48)
- step (124)
- sticky? (24)
- stop (12)
- stop? (12)
- store (24)
- strftime (12)
- string (12)
- strip (12)
- strip! (12)
- sub (60)
- sub! (36)
- subclasses (4)
- subsec (12)
- subset? (3)
- subtract (3)
- succ (31)
- succ! (12)
- sum (54)
- sunday? (12)
-
super
_ method (11) - superclass (12)
- superset? (3)
- swapcase (12)
- swapcase! (12)
- symlink (12)
- symlink? (24)
- sync (12)
- synchronize (12)
- syscall (12)
- sysopen (12)
- system (48)
- syswrite (12)
- tag (11)
- taint (9)
- tainted? (9)
- take (36)
-
take
_ while (72) - tally (10)
- tan (12)
- tap (12)
- tell (24)
- test (24)
- then (14)
- throw (12)
- thursday? (12)
- times (24)
-
to
_ a (118) -
to
_ ary (24) -
to
_ binary (10) -
to
_ c (48) -
to
_ enum (48) -
to
_ f (84) -
to
_ h (108) -
to
_ hash (24) -
to
_ i (96) -
to
_ int (36) -
to
_ path (27) -
to
_ proc (64) -
to
_ r (84) -
to
_ regexp (12) -
to
_ s (301) -
to
_ set (6) -
to
_ str (24) -
to
_ sym (12) -
total
_ time (12) - tr (12)
-
tr
_ s (12) -
tr
_ s! (12) - trace (12)
-
trace
_ var (36) - transfer (4)
-
transform
_ keys (20) -
transform
_ keys! (20) -
transform
_ values (18) -
transform
_ values! (18) - transpose (12)
- trap (24)
- truncate (72)
- trust (9)
-
try
_ convert (52) -
try
_ lock (12) - tty? (12)
- tuesday? (12)
-
tv
_ nsec (12) -
tv
_ sec (12) -
tv
_ usec (12) - type (7)
- uid (12)
- umask (24)
- unbind (12)
-
undef
_ method (12) -
undefine
_ finalizer (12) - undump (8)
-
unicode
_ normalize (11) -
unicode
_ normalize! (11) -
unicode
_ normalized? (11) - union (22)
- uniq (48)
- uniq! (24)
- unlink (24)
- unpack (12)
- unpack1 (9)
- unshift (12)
- untaint (9)
-
untrace
_ var (12) - untrust (9)
- untrusted? (9)
- upcase (12)
- upcase! (12)
- update (24)
- upto (36)
- urandom (8)
- usec (12)
-
used
_ modules (12) - using (24)
- utc (36)
- utc? (12)
-
utc
_ offset (12) - utime (12)
-
valid
_ encoding? (12) - value (11)
- value? (12)
- values (24)
-
values
_ at (48) - wait (12)
- wait2 (12)
- waitpid (12)
- waitpid2 (12)
- wakeup (12)
- warn (21)
- wday (12)
- wednesday? (12)
- with (3)
-
with
_ index (36) -
with
_ object (24) -
world
_ readable? (24) -
world
_ writable? (24) - writable? (24)
-
writable
_ real? (12) - write (36)
- yday (12)
- year (12)
- yield (36)
-
yield
_ self (16) - zero? (48)
- zip (72)
- zone (12)
- | (63)
- ~ (24)
検索結果
先頭5件
-
Time
# -(sec) -> Time (18156.0) -
自身より sec 秒だけ前の時刻を返します。
...り sec 秒だけ前の時刻を返します。
@param sec 実数を秒を単位として指定します。
//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 - 2592000 # => 2000-01-01 00:00:00 +0900
//}... -
Time
# -(time) -> Float (18146.0) -
自身と time との時刻の差を 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 # => 2592000.0
//}... -
Array
# -(other) -> Array (18120.0) -
自身から other の要素を取り除いた配列を生成して返します。
...換を試みます。
@raise TypeError 引数に配列以外の(暗黙の型変換が行えない)オブジェクトを
指定した場合に発生します。
//emlist[例][ruby]{
[1, 2, 1, 3, 1, 4] - [4, 2] # => [1, 1, 3, 1]
[1, 2, 1, 3, 1, 4] - [1, 4] # => [2, 3]
//}......@raise TypeError 引数に配列以外の(暗黙の型変換が行えない)オブジェクトを
指定した場合に発生します。
//emlist[例][ruby]{
[1, 2, 1, 3, 1, 4] - [4, 2] # => [1, 1, 3, 1]
[1, 2, 1, 3, 1, 4] - [1, 4] # => [2, 3]
//}
@see Array#difference... -
Complex
# -(other) -> Complex (18120.0) -
差を計算します。
...差を計算します。
@param other 自身から引く数
//emlist[例][ruby]{
Complex(1, 2) - Complex(2, 3) # => (-1-1i)
//}... -
Rational
# -(other) -> Rational | Float (18120.0) -
差を計算します。
...差を計算します。
@param other 自身から引く数
other に Float を指定した場合は、計算結果を Float で返しま
す。
//emlist[例][ruby]{
r = Rational(3, 4)
r - 1 # => (-1/4)
r - 0.5 # => 0.25
//}... -
Float
# -(other) -> Float (18114.0) -
算術演算子。差を計算します。
...算術演算子。差を計算します。
@param other 二項演算の右側の引数(対象)
//emlist[例][ruby]{
# 差
4.5 - 1.3 # => 3.2
//}... -
Integer
# -(other) -> Numeric (18114.0) -
算術演算子。差を計算します。
...算術演算子。差を計算します。
@param other 二項演算の右側の引数(対象)
@return 計算結果
//emlist[][ruby]{
4 - 1 #=> 3
//}... -
Set
# -(enum) -> Set (18114.0) -
差集合、すなわち、元の集合の要素のうち引数 enum に含まれる要素を取り除いた 新しい集合を作ります。
...作ります。
@param enum each メソッドが定義されたオブジェクトを指定します。
@raise ArgumentError 引数 enum に each メソッドが定義されていない場合に
発生します。
//emlist[][ruby]{
p Set[10, 20, 30] - Set[10, 20, 40]
# => #<Set: {30}>
//}... -
Kernel
$ $ -I -> [String] (6310.0) -
Rubyライブラリをロードするときの検索パスです。
...Rubyライブラリをロードするときの検索パスです。
Kernel.#load や Kernel.#require
がファイルをロードする時に検索するディレクトリのリストを含む配列です。
起動時にはコマンドラインオプション -I で指定したディレクトリ、......環境変数 RUBYLIB の値、
コンパイル時に指定したデフォルト値
をこの順番で含みます。
以下に典型的な UNIX システム上でのロードパスを示します。
-I で指定したパス
環境変数 RUBYLIB の値
/usr/local/lib/ruby/site_ruby/VERSION......リ
/usr/local/lib/ruby/site_ruby/VERSION/ARCH サイト固有、システム依存、拡張ライブラリ
/usr/local/lib/ruby/site_ruby サイト固有ライブラリ
/usr/local/lib/ruby/VERSION 標準ライブラリ
/usr/local/lib/ruby/VERSION/ARCH... -
Object
:: RUBY _ ENGINE -> String (6309.0) -
Ruby処理系実装の種類を表す文字列。
...Ruby処理系実装の種類を表す文字列。
例:
$ ruby-1.9.1 -ve 'p RUBY_ENGINE'
ruby 1.9.1p0 (2009-03-04 revision 22762) [x86_64-linux]
"ruby"
$ jruby -ve 'p RUBY_ENGINE'
jruby 1.2.0 (ruby 1.8.6 patchlevel 287) (2009-03-16 rev 9419) [i386-java]
"jruby"...