15055件ヒット
[1-100件を表示]
(0.156秒)
種類
ライブラリ
- English (66)
- ビルトイン (8930)
- abbrev (22)
- benchmark (77)
- bigdecimal (66)
-
bigdecimal
/ math (66) -
cgi
/ core (11) - cmath (84)
- coverage (22)
- csv (550)
- date (11)
- digest (44)
- erb (55)
- etc (11)
- fileutils (121)
-
irb
/ cmd / help (11) - json (187)
-
json
/ add / date (11) -
json
/ add / date _ time (22) -
json
/ add / exception (11) -
json
/ add / range (11) -
json
/ add / regexp (11) -
json
/ add / struct (11) -
json
/ add / time (11) - logger (44)
- matrix (154)
- mkmf (55)
-
net
/ http (869) - nkf (11)
- objspace (44)
- open-uri (33)
- openssl (198)
- optparse (308)
- ostruct (17)
- pathname (562)
- pp (33)
- prettyprint (11)
- prime (99)
- psych (289)
- pty (11)
- rake (88)
-
rake
/ packagetask (11) - rbconfig (11)
-
rbconfig
/ sizeof (22) - readline (11)
- resolv (11)
-
rexml
/ document (209) -
ripper
/ lexer (11) -
rubygems
/ commands / which _ command (11) -
rubygems
/ custom _ require (11) -
rubygems
/ gem _ path _ searcher (11) -
rubygems
/ requirement (11) -
rubygems
/ version (44) - securerandom (7)
- set (44)
- socket (110)
- stringio (120)
- strscan (132)
- thread (32)
- tsort (148)
- un (55)
- uri (66)
-
webrick
/ httprequest (11) -
webrick
/ httpservlet / cgihandler (11) -
webrick
/ ssl (11) - win32ole (55)
- zlib (11)
クラス
-
ARGF
. class (101) - Addrinfo (44)
- Array (634)
- BasicObject (77)
-
Benchmark
:: Tms (11) - BigDecimal (44)
- CGI (11)
- CSV (264)
-
CSV
:: FieldInfo (11) -
CSV
:: Row (143) -
CSV
:: Table (132) - Class (11)
- Complex (126)
- Coverage (22)
- Data (14)
- Date (22)
- DateTime (22)
-
Digest
:: Base (33) - Dir (365)
- ERB (33)
- Encoding (44)
-
Encoding
:: Converter (55) -
Encoding
:: UndefinedConversionError (11) - Enumerator (101)
-
Enumerator
:: Chain (6) -
Enumerator
:: Lazy (119) - Exception (40)
- FalseClass (33)
- File (266)
-
File
:: Stat (33) - Float (195)
-
Gem
:: GemPathSearcher (11) -
Gem
:: Requirement (11) -
Gem
:: Version (44) - Hash (1042)
- IO (391)
- IPSocket (11)
-
IRB
:: ExtendCommand :: Help (11) - Integer (292)
-
JSON
:: State (33) - KeyError (24)
- Logger (44)
- MatchData (257)
- Matrix (132)
- Method (247)
- Module (323)
- Mutex (2)
-
Net
:: HTTP (264) -
Net
:: HTTPGenericRequest (77) -
Net
:: HTTPResponse (132) - NilClass (50)
- Numeric (161)
- Object (297)
-
OpenSSL
:: ASN1 :: GraphicString (22) -
OpenSSL
:: BN (143) - OpenStruct (17)
- OptionParser (297)
- PP (33)
- Pathname (562)
- PrettyPrint (11)
- Prime (22)
-
Prime
:: EratosthenesGenerator (33) -
Prime
:: PseudoPrimeGenerator (44) -
Psych
:: Nodes :: Node (22) -
Psych
:: ScalarScanner (11) -
Psych
:: Stream (22) -
Psych
:: Visitors :: YAMLTree (22) -
REXML
:: Attributes (44) -
REXML
:: CData (11) -
REXML
:: DocType (11) -
REXML
:: Element (66) -
REXML
:: Elements (33) -
REXML
:: Entity (11) -
REXML
:: XPath (33) -
Rake
:: FileList (11) -
Rake
:: InvocationChain (44) -
Rake
:: PackageTask (11) -
Rake
:: TaskArguments (22) - Random (33)
- Range (196)
- Rational (110)
- Refinement (3)
- Regexp (96)
-
Resolv
:: DNS :: Name (11) - Ripper (11)
- RubyVM (1)
-
RubyVM
:: AbstractSyntaxTree :: Node (6) -
RubyVM
:: InstructionSequence (66) - Set (44)
- Socket (44)
- String (858)
- StringIO (120)
- StringScanner (132)
- Struct (127)
- Symbol (48)
- SystemCallError (11)
- TCPSocket (11)
- Thread (236)
-
Thread
:: Backtrace :: Location (77) -
Thread
:: ConditionVariable (22) -
Thread
:: Mutex (45) -
Thread
:: Queue (103) -
Thread
:: SizedQueue (53) - ThreadGroup (33)
- Time (206)
- TracePoint (22)
- TrueClass (33)
-
URI
:: FTP (11) -
URI
:: MailTo (11) - UnboundMethod (142)
- UncaughtThrowError (30)
- Vector (22)
-
WEBrick
:: HTTPRequest (11) -
WEBrick
:: HTTPServlet :: CGIHandler (11) -
WIN32OLE
_ EVENT (11) -
WIN32OLE
_ METHOD (11) -
WIN32OLE
_ TYPE (11) -
WIN32OLE
_ TYPELIB (11) -
Zlib
:: GzipWriter (11)
モジュール
- Abbrev (11)
- Benchmark (66)
- BigMath (88)
- CMath (78)
- Comparable (55)
- Digest (11)
-
ERB
:: Util (22) - Enumerable (319)
- FileUtils (121)
- GC (22)
-
GC
:: Profiler (11) - JSON (44)
-
JSON
:: Generator :: GeneratorMethods :: Array (11) -
JSON
:: Generator :: GeneratorMethods :: FalseClass (11) -
JSON
:: Generator :: GeneratorMethods :: Float (11) -
JSON
:: Generator :: GeneratorMethods :: Hash (11) -
JSON
:: Generator :: GeneratorMethods :: Integer (11) -
JSON
:: Generator :: GeneratorMethods :: NilClass (11) -
JSON
:: Generator :: GeneratorMethods :: Object (11) -
JSON
:: Generator :: GeneratorMethods :: String (11) -
JSON
:: Generator :: GeneratorMethods :: String :: Extend (11) -
JSON
:: Generator :: GeneratorMethods :: TrueClass (11) - Kernel (440)
- Marshal (66)
- Math (253)
-
Net
:: HTTPExceptions (11) -
Net
:: HTTPHeader (385) - ObjectSpace (99)
-
OpenSSL
:: ASN1 (22) -
OpenURI
:: Meta (33) -
OptionParser
:: Arguable (11) - PTY (11)
- Psych (149)
-
Rake
:: TaskManager (11) - RbConfig (33)
- Readline (11)
-
RubyVM
:: AbstractSyntaxTree (8) - SecureRandom (7)
- TSort (148)
- URI (44)
-
WEBrick
:: Config (11) -
WIN32OLE
:: VARIANT (11)
オブジェクト
- ENV (109)
キーワード
- != (11)
- !~ (11)
-
$ CHILD _ STATUS (11) -
$ INPUT _ LINE _ NUMBER (11) -
$ LAST _ MATCH _ INFO (11) -
$ LAST _ PAREN _ MATCH (11) -
$ LAST _ READ _ LINE (11) -
$ LOAD _ PATH (11) -
$ NR (11) -
$ archdir (11) -
$ hdrdir (11) -
$ sitearchdir (11) -
$ ~ (11) - % (50)
- & (55)
- * (55)
- ** (44)
- + (94)
-
/ (53) - < (53)
- << (28)
- <= (53)
- <=> (159)
- == (244)
- === (84)
- =~ (26)
- > (53)
- >= (53)
- >> (17)
- CMath (6)
-
CODE
_ CLASS _ TO _ OBJ (11) -
CODE
_ TO _ OBJ (11) - CONFIG (11)
- Cipher (11)
- ConditionVariable (11)
- DEBUG (11)
- DEBUG= (11)
- DOSISH 対応 (11)
- E (22)
- FORMAT (22)
- GraphicString (22)
- Hash (11)
- LIMITS (11)
-
MAJOR
_ VERSION (11) -
MINOR
_ VERSION (11) - Marshal フォーマット (11)
-
NEWS for Ruby 2
. 0 . 0 (11) -
NEWS for Ruby 2
. 1 . 0 (11) -
NEWS for Ruby 2
. 6 . 0 (6) -
NEWS for Ruby 2
. 7 . 0 (5) -
NEWS for Ruby 3
. 0 . 0 (4) - NKF (11)
- Nodes (11)
- OPS (11)
- PI (22)
- Proxy (11)
-
RUBY
_ COPYRIGHT (11) -
RUBY
_ PATCHLEVEL (11) - Ruby (11)
- Rubyで使われる記号の意味(正規表現の複雑な記号は除く) (11)
- Rubyの起動 (11)
-
SCRIPT
_ LINES _ _ (11) -
SHIFT
_ JIS (11) - SIZEOF (11)
- SSL (11)
- ScalarScanner (11)
-
Shift
_ JIS (11) - SizedQueue (11)
- String (11)
- Thread (11)
-
VT
_ DISPATCH (11) - WhichCommand (11)
- YAMLTree (11)
- [] (214)
- []= (66)
- ^ (44)
-
_ _ method _ _ (11) - abbrev (22)
-
abort
_ on _ exception (22) - absolute? (11)
-
absolute
_ path (33) -
absolute
_ path? (5) - acos (11)
- add (11)
-
add
_ field (11) -
add
_ trace _ func (11) -
alias
_ method (11) - aliases (11)
- alphanumeric (7)
- angle (11)
-
angle
_ with (11) - append (22)
- arg (11)
- arity (22)
- ascend (22)
- asin (11)
- assoc (11)
- at (11)
- atan (22)
- atan2 (11)
- atime (11)
- backtrace (11)
-
backtrace
_ locations (33) -
base
_ label (11) - basename (11)
-
basic
_ auth (11) - begin (11)
- benchmark (11)
- bind (11)
-
bind
_ call (10) - binread (22)
- binwrite (11)
- birthtime (21)
-
bit
_ length (11) - bm (11)
- bmbm (11)
- body (22)
-
body
_ permitted? (11) -
body
_ stream (11) -
body
_ stream= (11) - broadcast (11)
- bsearch (44)
-
bsearch
_ index (18) - byteoffset (4)
- bytes (7)
- byteslice (22)
- call (22)
- caller (11)
-
caller
_ locations (22) - captures (11)
- casecmp (22)
- casecmp? (16)
- catch (22)
- cbrt (17)
- cbrt! (6)
- ceildiv (2)
- center (11)
- cgi (11)
- chain (6)
- chardev? (11)
- charpos (11)
- chars (22)
- charset (22)
- chdir (66)
- check (22)
-
check
_ circular? (11) -
check
_ until (11) - children (37)
- chmod (33)
-
chmod
_ R (11) - chomp (22)
- chomp! (11)
- chop (22)
- chop! (11)
- chown (44)
-
chown
_ R (11) - chr (33)
- chroot (11)
- chunk (33)
-
chunk
_ while (11) - chunked? (11)
-
class
_ variables (11) - classify (11)
- cleanpath (11)
- clear (22)
- clone (44)
- close (9)
- closed? (9)
- cmp (11)
- code (11)
- coerce (66)
- collect (36)
- collect! (12)
-
collect
_ method (11) - compact (8)
- compact! (8)
-
compare
_ by _ identity (11) -
compare
_ by _ identity? (11) - compile (11)
-
compile
_ option (11) - concat (30)
-
connect
_ from (22) -
const
_ defined? (11) -
const
_ get (11) -
const
_ source _ location (5) - constants (11)
-
content
_ length (11) -
content
_ length= (11) -
content
_ range (11) -
content
_ type (11) -
content
_ type= (11) - convpath (11)
-
copy
_ stream (22) - cos (22)
- cos! (6)
- count (11)
-
count
_ nodes (11) -
count
_ objects (11) -
count
_ objects _ size (11) -
count
_ tdata _ objects (11) - ctime (11)
- curry (20)
-
datetime
_ format (11) -
datetime
_ format= (11) - debug (11)
-
deconstruct
_ keys (2) -
def
_ class (11) -
def
_ method (11) -
def
_ module (11) - default (22)
-
default
_ proc (11) -
define
_ method (22) -
define
_ singleton _ method (22) - delete (77)
-
delete
_ all (11) -
delete
_ if (33) - deq (22)
- descend (22)
- difference (6)
- dig (9)
- dirname (11)
- div (22)
- divmod (22)
-
drop
_ while (55) - dump (44)
-
dump
_ stream (11) - dup (11)
- each (407)
-
each
_ attribute (11) -
each
_ byte (66) -
each
_ capitalized _ name (11) -
each
_ char (44) -
each
_ child (62) -
each
_ codepoint (66) -
each
_ cons (22) -
each
_ element _ with _ attribute (11) -
each
_ element _ with _ text (11) -
each
_ entry (35) -
each
_ filename (11) -
each
_ grapheme _ cluster (14) -
each
_ header (11) -
each
_ index (22) -
each
_ key (55) -
each
_ line (132) -
each
_ name (11) -
each
_ object (44) -
each
_ pair (66) -
each
_ slice (22) -
each
_ strongly _ connected _ component (42) -
each
_ strongly _ connected _ component _ from (42) -
each
_ value (33) -
each
_ with _ index (66) -
each
_ with _ object (22) - empty? (38)
- end (11)
-
end
_ with? (16) - entity (11)
- entries (33)
-
enum
_ for (44) - eql? (178)
- equal? (33)
- erf (11)
- erfc (11)
-
error
_ char (11) - except (6)
- execute (11)
- exists? (9)
- exp (28)
- exp! (6)
- extract (22)
-
family
_ addrinfo (22) - fdiv (33)
- fetch (106)
-
fetch
_ values (18) - field (11)
- fill (22)
- filter (12)
- filter! (12)
- finish (22)
- first (11)
- flatten (11)
- flush (11)
- fnmatch (22)
- fnmatch? (11)
- foreach (77)
-
form
_ data= (11) - format (22)
- frexp (11)
- gamma (11)
- generate (22)
-
generate
_ line (11) - get (22)
- get2 (22)
-
get
_ fields (11) -
get
_ print (22) -
get
_ text (11) - getaddress (11)
- getc (11)
- getch (11)
- gethostbyname (22)
- gethostname (11)
- getopts (33)
- gets (24)
- getwd (11)
- glob (36)
- gm (22)
-
grapheme
_ clusters (14) -
group
_ by (11) - gsub (33)
- gsub! (22)
-
hadamard
_ product (7) - handler= (11)
-
has
_ elements? (11) -
has
_ key? (11) -
has
_ value? (11) - hash (112)
-
have
_ framework (22) - head (11)
- head2 (22)
- header (22)
- header? (11)
-
header
_ converters (11) -
header
_ row? (22) - headers (44)
- help (22)
- helpfile (11)
- hex (11)
- hexdigest (11)
- hexdigest! (11)
- hexencode (11)
- home (22)
- hour (11)
- hstack (22)
-
html
_ escape (11) -
http
_ version (11) - httpd (11)
- hypot (11)
-
import
_ methods (3) - include? (33)
- index (18)
- inherited (11)
- insert (22)
-
insert
_ output (11) - inspect (71)
- instance (22)
-
instance
_ method (11) -
instance
_ methods (11) - intersect? (3)
- intersection (5)
- invert (11)
- invkind (11)
- irb (11)
- join (22)
-
json
_ create (88) -
keep
_ if (22) - key (11)
- key? (33)
- keys (11)
- label (11)
-
last
_ match (22) -
latest
_ gc _ info (11) - lchmod (11)
- lchown (11)
- ldexp (11)
- length (99)
- lgamma (11)
-
lib
_ dirs _ for (11) - lineno (11)
- lines (30)
- list (11)
- ljust (11)
- load (25)
-
load
_ documents (8) -
load
_ file (11) -
load
_ stream (22) - local (22)
-
locale
_ charmap (11) - locked? (9)
- log (45)
- log! (12)
- log10 (11)
- log2 (11)
- logger (11)
- lshift! (11)
-
main
_ type (11) - map (36)
- map! (12)
-
marshal
_ dump (33) -
marshal
_ load (33) - match (55)
- match? (35)
- matched (11)
- matched? (11)
-
matched
_ size (11) - matches? (11)
- mathn (4)
- max (53)
-
max
_ by (44) - measure (11)
- member? (22)
- merge (22)
- merge! (22)
- method (33)
-
method
_ added (11) -
method
_ defined? (11) -
method
_ id (11) -
method
_ missing (11) -
method
_ removed (11) -
method
_ undefined (11) - methods (11)
- min (42)
- minmax (10)
- mkdir (11)
- mkmf (22)
- mkpath (11)
- mktime (22)
-
mod
_ add (11) -
mod
_ exp (11) -
mod
_ mul (11) -
mod
_ sub (11) - modulo (33)
- month (11)
- mountpoint? (11)
- msg (11)
- name (22)
- name= (9)
-
named
_ captures (11) - names (11)
-
net
/ http (11) - new (277)
- next (11)
-
num
_ waiting (11) - offset (22)
- on (88)
-
on
_ head (11) -
on
_ tail (11) - open (110)
- optparse (11)
-
optparse
/ shellwords (11) -
original
_ name (22) - owned? (9)
- owner (22)
- pack (19)
- pack テンプレート文字列 (11)
-
package
_ dir _ path (11) - parameters (11)
- parent (11)
- parse (55)
- parse! (11)
-
parse
_ file (8) -
parse
_ line (11) -
parse
_ stream (22) - path (101)
- pathconf (11)
- pathmap (11)
-
peek
_ result (11) - permutation (22)
- phase (33)
- polar (11)
- pop (22)
- post (22)
- post2 (22)
-
post
_ match (22) - pow (22)
- pp (22)
-
pre
_ match (22) - prepend (11)
-
pretty
_ generate (11) -
pretty
_ unparse (11) -
prime
_ fasttest? (11) - priority (11)
- priority= (11)
-
private
_ class _ method (15) -
private
_ instance _ methods (11) -
private
_ method _ defined? (11) -
protected
_ method _ defined? (11) -
proxy
_ basic _ auth (11) -
psych
_ y (11) -
psych
_ yaml _ as (4) -
public
_ class _ method (15) -
public
_ instance _ method (11) -
public
_ method (11) -
public
_ method _ defined? (11) - push (22)
- putc (22)
- pwd (11)
- query (11)
- quo (33)
-
quote
_ char (11) - rake (11)
- range (11)
-
range
_ length (11) - rassoc (11)
-
raw
_ data (11) -
rb
_ define _ method (11) -
rb
_ parser _ while _ loop (11) -
rdoc
/ markdown (11) -
reachable
_ objects _ from (11) - read (22)
-
read
_ body (22) - readchar (22)
- readline (11)
- readlines (68)
- readlink (11)
- realdirpath (11)
- realpath (33)
- realtime (11)
- receiver (11)
- regexp (22)
- rehash (11)
- reject (33)
- reject! (22)
- relative? (11)
-
relative
_ path _ from (11) - remainder (22)
-
remove
_ entry (11) -
remove
_ method (11) - reopen (22)
- replace (33)
-
report
_ on _ exception (8) -
request
_ body _ permitted? (11) -
request
_ get (22) -
request
_ head (22) -
request
_ post (22) - require (11)
-
resolve
_ feature _ path (1) - response (11)
-
response
_ body _ permitted? (11) - restore (11)
- result (11)
-
return
_ headers? (11) -
reverse
_ each (46) - rewind (11)
-
rexml
/ parsers / ultralightparser (11) - rjust (11)
- rmdir (11)
- root? (11)
- round (19)
- rshift! (11)
-
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 2 feature (11) -
ruby 1
. 8 . 4 feature (11) -
ruby2
_ keywords (5) -
ruby2
_ keywords _ hash? (5) - rubygems (11)
-
rubygems
/ commands / build _ command (11) -
rubygems
/ commands / cert _ command (11) -
rubygems
/ commands / check _ command (11) -
rubygems
/ commands / cleanup _ command (11) -
rubygems
/ commands / contents _ command (11) -
rubygems
/ commands / dependency _ command (11) -
rubygems
/ commands / environment _ command (11) -
rubygems
/ commands / fetch _ command (11) -
rubygems
/ commands / generate _ index _ command (11) -
rubygems
/ commands / help _ command (11) -
rubygems
/ commands / install _ command (11) -
rubygems
/ commands / list _ command (11) -
rubygems
/ commands / lock _ command (11) -
rubygems
/ commands / mirror _ command (11) -
rubygems
/ commands / outdated _ command (11) -
rubygems
/ commands / pristine _ command (11) -
rubygems
/ commands / query _ command (11) -
rubygems
/ commands / rdoc _ command (11) -
rubygems
/ commands / search _ command (11) -
rubygems
/ commands / server _ command (11) -
rubygems
/ commands / sources _ command (11) -
rubygems
/ commands / specification _ command (11) -
rubygems
/ commands / uninstall _ command (11) -
rubygems
/ commands / unpack _ command (11) - run (11)
-
safe
_ level (7) -
safe
_ load (17) - scrub (33)
- scrub! (33)
-
search
_ convpath (11) -
search
_ full (11) - select (22)
- select! (22)
-
send
_ request (11) - separator (11)
- seplist (11)
-
set
_ content _ type (11) -
set
_ debug _ output (11) -
set
_ form _ data (11) -
set
_ range (33) -
set
_ trace _ func (11) -
sev
_ threshold (11) -
sharing
_ detection (11) - shell (6)
- shift (66)
- shuffle (22)
- shuffle! (22)
- signal (11)
- sin (22)
- sin! (6)
-
singleton
_ method (11) -
singleton
_ method _ added (11) -
singleton
_ method _ removed (11) -
singleton
_ method _ undefined (11) -
singleton
_ methods (11) - size (99)
- sleep (9)
- slice (57)
- slice! (33)
-
slice
_ when (21) -
source
_ location (22) - split (39)
- sprintf (11)
- sprintf フォーマット (11)
- sqrt (28)
- sqrt! (6)
- squeeze (11)
- squeeze! (11)
- start (55)
-
start
_ with? (16) - stat (11)
- step (24)
- stop (11)
- stop? (11)
- store (11)
- strftime (11)
- string (11)
-
strongly
_ connected _ components (11) - sub (55)
- sub! (22)
-
sub
_ ext (11) -
sub
_ type (11) -
subdomain
_ of? (11) - succ (11)
- summarize (22)
-
summary
_ indent (11) -
summary
_ indent= (11) -
summary
_ width (11) -
summary
_ width= (11) -
super
_ method (10) - synchronize (11)
-
synthesize
_ file _ task (11) - syscall (11)
- sysopen (11)
- table (11)
- tag (10)
-
take
_ while (66) - tally (8)
- tan (11)
- tan! (6)
- tcp (22)
-
test
/ unit (1) - text (11)
- then (12)
- throw (11)
- thursday? (11)
-
to
_ a (55) -
to
_ csv (11) -
to
_ enum (44) -
to
_ h (123) -
to
_ hash (55) -
to
_ json (121) -
to
_ path (24) -
to
_ proc (20) -
to
_ ruby (11) -
to
_ s (138) -
token
_ match (11) - tokenize (11)
- touch (22)
-
trace
_ var (22) - transform (11)
-
transform
_ keys (17) -
transform
_ keys! (17) -
transform
_ values (16) -
transform
_ values! (16) - truncate (22)
-
try
_ convert (11) -
try
_ lock (9) - tsort (11)
-
tsort
_ each (42) -
type
_ params (11) - ucmp (11)
- unbind (11)
-
undef
_ method (11) - ungetc (11)
- union (6)
- unlink (22)
- unpack (11)
- unparse (11)
- unshift (11)
-
untrace
_ var (11) - update (22)
- uptodate? (11)
- utc (22)
- value (21)
- value? (11)
- values (11)
-
values
_ at (33) - wakeup (11)
-
warn
_ unless _ e _ option (11) -
warning
_ unless _ e _ option (11) - with (2)
-
with
_ defaults (11) -
with
_ index (54) -
with
_ object (22) -
world
_ readable? (11) -
world
_ writable? (11) - write (33)
-
write
_ headers? (11) - xpath (11)
- y (11)
-
yaml
_ as (4) -
yield
_ self (12) - | (55)
- スレッド (11)
- 正規表現 (11)
検索結果
先頭5件
-
Array
# -(other) -> Array (18218.0) -
自身から other の要素を取り除いた配列を生成して返します。
...自身から other の要素を取り除いた配列を生成して返します。
要素の同一性は Object#eql? により評価されます。
self 中で重複していて、other中に存在していなかった要素は、その重複が保持されます。
@param 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 (18218.0) -
差を計算します。
...差を計算します。
@param other 自身から引く数
//emlist[例][ruby]{
Complex(1, 2) - Complex(2, 3) # => (-1-1i)
//}... -
Rational
# -(other) -> Rational | Float (18218.0) -
差を計算します。
...差を計算します。
@param other 自身から引く数
other に Float を指定した場合は、計算結果を Float で返しま
す。
//emlist[例][ruby]{
r = Rational(3, 4)
r - 1 # => (-1/4)
r - 0.5 # => 0.25
//}... -
Float
# -(other) -> Float (18212.0) -
算術演算子。差を計算します。
...算術演算子。差を計算します。
@param other 二項演算の右側の引数(対象)
//emlist[例][ruby]{
# 差
4.5 - 1.3 # => 3.2
//}... -
Integer
# -(other) -> Numeric (18212.0) -
算術演算子。差を計算します。
...算術演算子。差を計算します。
@param other 二項演算の右側の引数(対象)
@return 計算結果
//emlist[][ruby]{
4 - 1 #=> 3
//}... -
ERB
:: Util . # h(s) -> String (18207.0) -
文字列 s を HTML用にエスケープした文字列を返します。
... HTML用にエスケープした文字列を返します。
文字列 s 中に含まれる &"<> を、実体参照 & " < > にそれぞれ変更した文字列を返します
(CGI.escapeHTMLとほぼ同じです)。
@param s HTMLエスケープを行う文字列
//emlist[例][ruby......]{
require "erb"
include ERB::Util
puts html_escape("is a > 0 & a < 10?")
# is a > 0 & a < 10?
//}... -
Hash
. ruby2 _ keywords _ hash?(hash) -> bool (15491.0) -
Module#ruby2_keywordsやProc#ruby2_keywordsによる ruby2_keywords フラグが設定されているかどうかを返します。
...Module#ruby2_keywordsやProc#ruby2_keywordsによる
ruby2_keywords フラグが設定されているかどうかを返します。
このメソッドはデバッグや調査、シリアライゼーションのために本当に必要な場合のために
用意されていて、普通のプログ......れていません。
ruby 2.7.1 で追加されたため、ruby 2.7.0 では定義されていません。
//emlist[][ruby]{
ruby2_keywords def foo(*args)
Hash.ruby2_keywords_hash?(args.last)
end
foo(k: 1) # => true
foo({k: 1}) # => false
//}
@see Module#ruby2_keywords, Proc#ruby2_keywords... -
Object
:: RUBY _ PATCHLEVEL -> Integer (12341.0) -
Ruby のパッチレベルを表す Integer オブジェクトです。
...Ruby のパッチレベルを表す Integer オブジェクトです。
パッチレベルはRubyの各バージョンに対するバグ修正パッチの適用をカウントしています。
teeny リリースのそれぞれについてパッチレベルは 0 から始まり、
その teeny リ......スに対してバグ修正パッチが適用される度に増えていきます。
パッチレベルという概念および RUBY_PATCHLEVEL 定数は、 Ruby 1.8.5-p1 以降、 1.8.6 以降で導入されました。
1.8.5やそれ以前のバージョンでは定義されていません。... -
Object
:: RUBY _ COPYRIGHT -> String (12317.0) -
Ruby のコピーライトを表す文字列。
...Ruby のコピーライトを表す文字列。... -
Enumerable
# each _ with _ index(*args) -> Enumerator (12312.0) -
要素とそのインデックスをブロックに渡して繰り返します。
...th_index は offset 引数を受け取りますが、
each_with_index は受け取りません (引数はイテレータメソッドにそのまま渡されます)。
@param args イテレータメソッド (each など) にそのまま渡されます。
//emlist[例][ruby]{
[5, 10, 15].each_with_......index do |n, idx|
p [n, idx]
end
# => [5, 0]
# [10, 1]
# [15, 2]
//}
//emlist[引数ありの例][ruby]{
require 'stringio'
StringIO.new("foo|bar|baz").each_with_index("|") do |s, i|
p [s, i]
end
# => ["foo|", 0]
# ["bar|", 1]
# ["baz", 2]
//}
@see Enumerator#with_index...