4159件ヒット
[201-300件を表示]
(0.068秒)
別のキーワード
クラス
-
ARGF
. class (36) - Array (245)
- BasicObject (144)
- Binding (48)
- Class (32)
- Data (6)
- Dir (48)
-
Encoding
:: Converter (48) -
Encoding
:: InvalidByteSequenceError (12) - Enumerator (120)
- Exception (80)
- Fiber (34)
- File (36)
- FrozenError (6)
- Hash (74)
- IO (256)
- Integer (23)
- MatchData (104)
- Method (139)
- Module (948)
- Mutex (4)
- Numeric (105)
- Object (420)
- Proc (62)
- Random (36)
- Range (124)
- Regexp (48)
-
RubyVM
:: InstructionSequence (48) - String (194)
- Symbol (12)
- Thread (72)
-
Thread
:: Backtrace :: Location (48) -
Thread
:: ConditionVariable (20) -
Thread
:: Mutex (20) -
Thread
:: Queue (30) -
Thread
:: SizedQueue (30) - Time (2)
- TracePoint (165)
- UnboundMethod (24)
モジュール
- Comparable (12)
- Enumerable (244)
キーワード
- ! (12)
- != (12)
- % (12)
-
/ (11) - < (12)
- << (14)
- <= (12)
- <=> (12)
- == (48)
- === (75)
- =~ (12)
- > (12)
- >= (12)
- >> (14)
- [] (120)
- []= (36)
-
_ _ send _ _ (24) -
_ dump (12) -
absolute
_ path (24) -
add
_ trace _ func (12) -
alias
_ method (12) - allocate (12)
- ancestors (12)
- append (8)
-
append
_ as _ bytes (1) -
append
_ features (12) - at (12)
- attr (36)
-
attr
_ accessor (12) -
attr
_ reader (12) -
attr
_ writer (12) - autoclose? (12)
- autoload (12)
- backtrace (12)
-
backtrace
_ locations (12) -
base
_ label (24) - begin (24)
- bind (12)
- binmode (12)
- broadcast (10)
- byteend (2)
- byteoffset (6)
- call (36)
-
callee
_ id (12) - chunk (12)
- clamp (12)
-
class
_ eval (24) -
class
_ exec (12) -
class
_ variable _ defined? (12) -
class
_ variable _ get (12) -
class
_ variable _ set (12) -
class
_ variables (12) - clone (24)
-
close
_ read (12) -
close
_ write (12) - coerce (12)
- compact (4)
-
const
_ defined? (12) -
const
_ get (12) -
const
_ missing (12) -
const
_ set (12) -
const
_ source _ location (12) - constants (12)
- cover? (19)
- crypt (12)
- curry (22)
- deconstruct (3)
-
deconstruct
_ keys (5) -
default
_ proc= (12) -
define
_ method (24) -
define
_ singleton _ method (24) -
defined
_ class (12) -
delete
_ suffix (8) -
delete
_ suffix! (8) - deq (20)
- disable (24)
- display (12)
- div (12)
- dup (24)
- each (72)
-
each
_ byte (48) -
each
_ entry (24) -
each
_ index (24) -
each
_ line (24) -
each
_ with _ index (24) - enable (24)
-
end
_ with? (18) -
enum
_ for (24) - eql? (12)
-
error
_ bytes (12) - eval (12)
-
eval
_ script (7) - event (12)
- exception (24)
- extend (12)
-
extend
_ object (12) - extended (12)
- fcntl (12)
- fdatasync (12)
- feed (12)
- fetch (36)
- first (24)
- flush (12)
- freeze (12)
- include (12)
- include? (12)
- included (12)
-
included
_ modules (12) - inherited (12)
- initialize (12)
-
initialize
_ copy (12) -
inplace
_ mode= (12) - inspect (48)
-
instance
_ eval (24) -
instance
_ exec (12) -
instance
_ method (12) -
instance
_ methods (12) -
instance
_ of? (12) -
instance
_ variable _ defined? (12) -
instance
_ variable _ get (12) -
instruction
_ sequence (7) - invert (12)
-
is
_ a? (12) -
kind
_ of? (12) - label (12)
- last (24)
- lazy (12)
- lineno (12)
-
local
_ variable _ defined? (12) -
local
_ variable _ get (12) -
local
_ variable _ set (12) - lstat (12)
-
marshal
_ dump (12) - match (24)
- max (48)
-
max
_ by (48) - merge (24)
-
method
_ added (12) -
method
_ defined? (12) -
method
_ id (12) -
method
_ missing (12) -
method
_ removed (12) -
method
_ undefined (12) - methods (12)
- min (48)
-
module
_ eval (24) -
module
_ exec (12) -
module
_ function (36) - name (12)
- next (12)
-
next
_ values (12) - offset (24)
-
original
_ name (24) - overlap? (2)
- pack (21)
- parameters (7)
- path (24)
-
peek
_ values (12) - pid (12)
- pop (20)
- pos (12)
- pos= (24)
- pread (8)
- prepend (41)
-
prepend
_ features (12) - prepended (12)
-
primitive
_ convert (48) - priority (12)
- priority= (12)
- private (48)
-
private
_ class _ method (24) -
private
_ constant (12) -
private
_ instance _ methods (12) -
private
_ method _ defined? (12) -
protected
_ method _ defined? (12) - public (48)
-
public
_ class _ method (24) -
public
_ constant (12) -
public
_ method _ defined? (12) -
public
_ send (24) - push (8)
- pwrite (8)
- raise (18)
-
raised
_ exception (12) - rand (36)
- read (12)
- readbyte (24)
- readchar (12)
- receiver (6)
- refine (12)
-
remove
_ class _ variable (12) -
remove
_ const (12) -
remove
_ instance _ variable (12) -
remove
_ method (12) - replace (12)
-
respond
_ to? (12) -
respond
_ to _ missing? (12) - resume (12)
-
return
_ value (12) - rewind (12)
- seek (12)
- send (24)
-
set
_ backtrace (12) -
set
_ trace _ func (12) - shift (20)
- signal (10)
-
singleton
_ method (12) -
singleton
_ method _ added (12) -
singleton
_ method _ removed (12) -
singleton
_ method _ undefined (12) -
singleton
_ methods (12) - size (12)
- sleep (12)
-
sort
_ by (24) -
source
_ location (12) -
start
_ with? (18) - stat (12)
- step (93)
- subclasses (4)
- sum (12)
-
super
_ method (11) - superclass (4)
- sync (12)
- synchronize (12)
- syswrite (12)
- tell (12)
-
thread
_ variable _ set (12) -
to
_ a (12) -
to
_ ary (24) -
to
_ enum (24) -
to
_ h (14) -
to
_ int (12) -
to
_ s (48) -
to
_ str (12) - transfer (4)
- truncate (12)
-
undef
_ method (12) - unpack (12)
- unshift (8)
- upto (12)
-
with
_ object (24) - write (12)
- yield (12)
検索結果
先頭5件
-
Array
# append(*obj) -> self (6121.0) -
指定された obj を順番に配列の末尾に追加します。 引数を指定しなければ何もしません。
...定しなければ何もしません。
@param obj 自身に追加したいオブジェクトを指定します。
//emlist[例][ruby]{
array = [1, 2, 3]
array.push 4
array.push [5, 6]
array.push 7, 8
p array # => [1, 2, 3, 4, [5, 6], 7, 8]
//}
@see Array#pop, Array#shift, Array#unshift,... -
Array
# prepend(*obj) -> self (6121.0) -
指定された obj を引数の最後から順番に配列の先頭に挿入します。 引数を指定しなければ何もしません。
...ん。
@param obj 自身に追加したいオブジェクトを指定します。
//emlist[例][ruby]{
arr = [1,2,3]
arr.unshift 0
p arr #=> [0, 1, 2, 3]
arr.unshift [0]
p arr #=> [[0], 0, 1, 2, 3]
arr.unshift 1, 2
p arr #=> [1, 2, [0], 0, 1, 2, 3]
//}
@see Arr... -
String
# append _ as _ bytes(*objects) -> self (6121.0) -
引数で与えたオブジェクトをバイト列として、self に破壊的に連結します。
...を越える場合は、最下位のバイトのみを使用します。
//emlist[例][ruby]{
s = "あ".b # => "\xE3\x81\x82"
s.encoding # => #<Encoding:BINARY (ASCII-8BIT)>
s.append_as_bytes("い") # => "\xE3\x81\x82\xE3\x81\x84"
# s << "い" では連結できな......い
s << "い" # => "incompatible character encodings: BINARY (ASCII-8BIT) and UTF-8 (Encoding::CompatibilityError)
//}
//emlist[引数で整数を渡す例][ruby]{
t = ""
t.append_as_bytes(0x61) # => "a"
t.append_as_bytes(0x3062) # => "ab"
//}
@see String#<<, String#concat... -
String
# prepend(*arguments) -> String (6117.0) -
複数の文字列を先頭に破壊的に追加します。
...複数の文字列を先頭に破壊的に追加します。
@param arguments 追加したい文字列を指定します。
//emlist[例][ruby]{
a = "!!!"
a.prepend # => "!!!"
a # => "!!!"
a = "!!!"
a.prepend "hello ", "world" # => "hello world!!!"
a # => "hello... -
String
# prepend(other _ str) -> String (6117.0) -
文字列 other_str を先頭に破壊的に追加します。
...文字列 other_str を先頭に破壊的に追加します。
@param other_str 追加したい文字列を指定します。
//emlist[例][ruby]{
a = "world"
a.prepend("hello ") # => "hello world"
a # => "hello world"
//}... -
Range
# last(n) -> [object] (3042.0) -
最後の n 要素を返します。範囲内に要素が含まれない場合は空の配列を返します。
...まれない場合は空の配列を返します。
@param n 取得する要素数を整数で指定します。整数以外のオブジェクトを指定
した場合は to_int メソッドによる暗黙の型変換を試みます。
@raise TypeError 引数に整数以外の(暗黙の......す。
@raise ArgumentError n に負の数を指定した場合に発生します。
[注意] 引数を省略して実行した場合は、終端を含むかどうか
(Range#exclude_end? の戻り値)に関わらず終端の要素を返す事に注意し
てください。
//emlist[例][ruby]{
(1......0..20).last(3) # => [18, 19, 20]
(10...20).last(3) # => [17, 18, 19]
//}
@see Range#first... -
Range
# last -> object (3022.0) -
終端の要素を返します。範囲オブジェクトが終端を含むかどうかは関係ありま せん。
...終端の要素を返します。範囲オブジェクトが終端を含むかどうかは関係ありま
せん。
//emlist[例][ruby]{
(10..20).last # => 20
(10...20).last # => 20
//}
@see Range#begin... -
Array
# push(*obj) -> self (3021.0) -
指定された obj を順番に配列の末尾に追加します。 引数を指定しなければ何もしません。
...定しなければ何もしません。
@param obj 自身に追加したいオブジェクトを指定します。
//emlist[例][ruby]{
array = [1, 2, 3]
array.push 4
array.push [5, 6]
array.push 7, 8
p array # => [1, 2, 3, 4, [5, 6], 7, 8]
//}
@see Array#pop, Array#shift, Array#unshift,... -
Array
# unshift(*obj) -> self (3021.0) -
指定された obj を引数の最後から順番に配列の先頭に挿入します。 引数を指定しなければ何もしません。
...ん。
@param obj 自身に追加したいオブジェクトを指定します。
//emlist[例][ruby]{
arr = [1,2,3]
arr.unshift 0
p arr #=> [0, 1, 2, 3]
arr.unshift [0]
p arr #=> [[0], 0, 1, 2, 3]
arr.unshift 1, 2
p arr #=> [1, 2, [0], 0, 1, 2, 3]
//}
@see Arr... -
RubyVM
:: InstructionSequence # base _ label -> String (3021.0) -
self が表す命令シーケンスの基本ラベルを返します。
...iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
iseq.base_label
# => "<compiled>"
例2: RubyVM::InstructionSequence.compile_file を使用した場合
# /tmp/method.rb
def hello
puts "hello, world"
end
# irb......> iseq = RubyVM::InstructionSequence.compile_file('/tmp/method.rb')
> iseq.base_label # => "<main>"
例3:
# /tmp/method2.rb
def hello
puts "hello, world"
end
RubyVM::InstructionSequence.of(method(:hello)).base_label
# => "hello"
@see RubyVM::InstructionSequence#label... -
RubyVM
:: InstructionSequence # label -> String (3021.0) -
self が表す命令シーケンスのラベルを返します。通常、メソッド名、クラス名、 モジュール名などで構成されます。
... RubyVM::InstructionSequence.compile('num = 1 + 2')
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
iseq.label
# => "<compiled>"
例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.label # => "<main>"
例3:
# /tmp/method2.rb
def hello
puts "hello, world"
end
RubyVM::InstructionSequence.of(method(:hello)).label
# => "hello"
@see RubyVM::InstructionSequence#base_label...