2680件ヒット
[1-100件を表示]
(0.150秒)
種類
ライブラリ
- ビルトイン (536)
- etc (11)
- fileutils (66)
- kconv (22)
- mkmf (44)
-
net
/ ftp (165) -
net
/ http (22) -
net
/ imap (11) -
net
/ smtp (56) - openssl (11)
- pathname (44)
- rbconfig (11)
-
rdoc
/ context (11) -
rdoc
/ top _ level (11) - resolv-replace (22)
-
rexml
/ document (22) -
rexml
/ sax2listener (22) -
rubygems
/ dependency _ installer (11) -
rubygems
/ gem _ path _ searcher (11) - shell (12)
- socket (484)
- syslog (253)
- time (22)
- timeout (19)
-
webrick
/ httpservlet / filehandler (11) -
win32
/ registry (198) - win32ole (44)
クラス
- Addrinfo (99)
- BasicSocket (33)
- Binding (43)
- Encoding (11)
-
File
:: Stat (22) -
Gem
:: DependencyInstaller (11) -
Gem
:: GemPathSearcher (11) - LocalJumpError (11)
- Module (22)
- NameError (20)
-
Net
:: FTP (165) -
Net
:: HTTP (22) -
Net
:: IMAP :: Address (11) -
Net
:: SMTP (56) - Object (22)
- Pathname (44)
-
RDoc
:: Context (11) -
RDoc
:: TopLevel (11) -
RubyVM
:: InstructionSequence (33) - Shell (12)
- Socket (165)
-
Socket
:: AncillaryData (11) -
Socket
:: UDPSource (11) - String (11)
- TCPSocket (44)
- Thread (11)
- Time (308)
- TracePoint (11)
-
WEBrick
:: HTTPServlet :: DefaultFileHandler (11) - WIN32OLE (44)
-
Win32
:: Registry (99)
モジュール
- Etc (11)
- FileUtils (66)
-
Gem
:: LocalRemoteOptions (99) - Kconv (11)
- Kernel (88)
-
OpenSSL
:: X509 (11) -
REXML
:: Namespace (22) -
REXML
:: SAX2Listener (22) - RbConfig (11)
-
Socket
:: Constants (143) -
Syslog
:: Facility (253) - Timeout (19)
-
Win32
:: Registry :: Constants (99)
キーワード
-
$ LOAD _ PATH (11) -
$ archdir (11) -
$ sitearchdir (11) - - (11)
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) -
AF
_ LAT (22) -
AF
_ LOCAL (22) -
AF
_ UNIX (22) -
HKEY
_ CLASSES _ ROOT (22) -
HKEY
_ CURRENT _ CONFIG (22) -
HKEY
_ CURRENT _ USER (22) -
HKEY
_ DYN _ DATA (22) -
HKEY
_ LOCAL _ MACHINE (22) -
HKEY
_ PERFORMANCE _ DATA (22) -
HKEY
_ PERFORMANCE _ NLSTEXT (22) -
HKEY
_ PERFORMANCE _ TEXT (22) -
HKEY
_ USERS (22) -
INADDR
_ MAX _ LOCAL _ GROUP (22) -
LOCALE
_ SYSTEM _ DEFAULT (11) -
LOCALE
_ USER _ DEFAULT (11) -
LOCAL
_ CONNWAIT (22) -
LOCAL
_ CREDS (22) -
LOCAL
_ PEERCRED (22) -
LOG
_ AUTH (11) -
LOG
_ AUTHPRIV (11) -
LOG
_ CONSOLE (11) -
LOG
_ CRON (11) -
LOG
_ DAEMON (11) -
LOG
_ FTP (11) -
LOG
_ KERN (11) -
LOG
_ LOCAL0 (11) -
LOG
_ LOCAL1 (11) -
LOG
_ LOCAL2 (11) -
LOG
_ LOCAL3 (11) -
LOG
_ LOCAL4 (11) -
LOG
_ LOCAL5 (11) -
LOG
_ LOCAL6 (11) -
LOG
_ LOCAL7 (11) -
LOG
_ LPR (11) -
LOG
_ MAIL (11) -
LOG
_ NEWS (11) -
LOG
_ NTP (11) -
LOG
_ SECURITY (11) -
LOG
_ SYSLOG (11) -
LOG
_ USER (11) -
LOG
_ UUCP (11) - LocalRemoteOptions (11)
-
MAKEFILE
_ CONFIG (11) -
NEWS for Ruby 2
. 0 . 0 (11) -
NEWS for Ruby 2
. 1 . 0 (11) -
NI
_ NOFQDN (11) -
PF
_ LAT (22) -
PF
_ LOCAL (22) -
PF
_ UNIX (22) - Rubyの起動 (11)
- Ruby用語集 (11)
-
SCRIPT
_ LINES _ _ (11) -
SC
_ 2 _ LOCALEDEF (11) -
SO
_ REUSEADDR (22) -
SO
_ REUSEPORT (11) -
V
_ ERR _ UNABLE _ TO _ GET _ ISSUER _ CERT _ LOCALLY (11) - [] (11)
-
accept
_ uri _ http (11) -
add
_ bulk _ threshold _ option (11) -
add
_ proxy _ option (11) -
add
_ source _ option (11) -
add
_ update _ sources _ option (11) - asctime (11)
- bigdecimal (11)
- binary (11)
- binary= (11)
- bind (22)
- binding (11)
- both? (11)
- chown (11)
-
chown
_ R (11) -
class
_ variables (11) -
connect
_ address (11) - constants (11)
- ctime (11)
- day (11)
-
dir
_ config (11) - disasm (11)
- disassemble (11)
-
each
_ child (22) -
each
_ entry (11) -
end
_ element (11) - entries (11)
-
exit
_ value (11) -
find
_ executable (11) -
find
_ local _ symbol (22) - friday? (11)
- get (22)
- getbinaryfile (22)
- getlocal (22)
- getsockopt (11)
- gettextfile (22)
-
global
_ variables (11) - grpowned? (11)
- install (11)
-
instance
_ variables (11) -
ipv6
_ linklocal? (11) -
ipv6
_ mc _ linklocal? (11) -
ipv6
_ mc _ nodelocal? (11) -
ipv6
_ mc _ orglocal? (11) -
ipv6
_ mc _ sitelocal? (11) -
ipv6
_ sitelocal? (11) -
ipv6
_ unique _ local? (11) - irb (11)
-
irb
/ locale (11) -
jump
_ tag _ but _ local _ jump (11) -
lib
_ dirs _ for (11) - local? (11)
-
local
_ address (22) -
local
_ append (11) -
local
_ cnt (11) -
local
_ host (11) -
local
_ id (11) -
local
_ name (11) -
local
_ pop (11) -
local
_ port (11) -
local
_ push (11) -
local
_ tbl (11) -
local
_ variable _ defined? (11) -
local
_ variable _ get (11) -
local
_ variable _ set (11) -
local
_ variables (30) - locale (11)
- locale= (11)
-
locale
_ charmap (11) -
localjump
_ error (11) -
localjump
_ exitstatus (11) - localtime (22)
- mailbox (11)
- makedirs (11)
- mday (11)
-
mkdir
_ p (11) - mkpath (11)
- mktime (22)
- monday? (11)
- mtime (11)
- name (11)
- new (44)
- open (22)
- optparse (11)
- owned? (11)
- parse (22)
- pushd (6)
- pushdir (6)
- put (22)
- putbinaryfile (22)
- puttextfile (22)
-
rb
_ f _ local _ variables (11) -
rb
_ is _ local _ id (11) -
rb
_ thread _ local _ aref (11) -
rb
_ thread _ local _ aset (11) - remote? (11)
-
require
_ relative (11) -
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 3 feature (11) -
ruby 1
. 8 . 4 feature (11) -
ruby 1
. 9 feature (11) -
rubygems
/ commands / install _ command (11) -
rubygems
/ commands / list _ command (11) -
rubygems
/ commands / query _ command (11) -
rubygems
/ commands / search _ command (11) -
rubygems
/ commands / specification _ command (11) -
rubygems
/ security (11) - saturday? (11)
-
scope
_ dup (11) -
special
_ local _ set (11) - start (56)
-
start
_ element (11) - strftime (11)
- subsec (11)
- sunday? (11)
- tcp (22)
- thursday? (11)
- timeout (19)
-
to
_ a (22) -
to
_ f (11) -
to
_ r (11) -
to
_ s (11) - tolocale (22)
-
top
_ local _ init (11) -
top
_ local _ setup (11) - tuesday? (11)
-
unix
_ server _ socket (22) - wednesday? (11)
- year (11)
- 変数と定数 (11)
検索結果
先頭5件
-
irb
/ locale (38000.0) -
ライブラリ内部で使用します。
ライブラリ内部で使用します。
このライブラリで定義されているメソッドはユーザが直接使用するものではありません。 -
Gem
:: LocalRemoteOptions # add _ local _ remote _ options (27317.0) -
オプション --local, --remote, --both を追加します。
...オプション --local, --remote, --both を追加します。... -
Time
. local(sec , min , hour , mday , mon , year , wday , yday , isdst , zone) -> Time (27309.0) -
引数で指定した地方時の Time オブジェクトを返します。
...た地方時の Time オブジェクトを返します。
引数の順序は Time#to_a と全く同じです。
引数 wday, yday, zone に指定した値は無視されます。
引数に nil を指定した場合の値はその引数がとり得る最小の値です。
@param sec 秒を 0 か......。(60はうるう秒)
@param min 分を 0 から 59 までの整数か文字列で指定します。
@param hour 時を 0 から 23 までの整数か文字列で指定します。
@param mday 日を 1 から 31 までの整数か文字列で指定します。
@param mon 1(1月)から 12(12......月名("Jan", "Feb", ... などの省略名。文字の大小は無視)も指定できます。
@param year 年を整数か文字列で指定します。例えば 1998 年に対して 1998 を指定します。
@param wday 無視されます。
@param yday 無視されます。
@param isdst 指... -
Time
. local(year , mon = 1 , day = 1 , hour = 0 , min = 0 , sec = 0 , usec = 0) -> Time (27309.0) -
引数で指定した地方時の Time オブジェクトを返します。
...た地方時の Time オブジェクトを返します。
第2引数以降に nil を指定した場合の値はその引数がとり得る最小の値です。
@param year 年を整数か文字列で指定します。例えば 1998 年に対して 1998 を指定します。
@param mon 1(1月)か......英語の月名("Jan", "Feb", ... などの省略名。文字の大小は無視)も指定できます。
@param day 日を 1 から 31 までの整数か文字列で指定します。
@param hour 時を 0 から 23 までの整数か文字列で指定します。
@param min 分を 0 から 5......param sec 秒を 0 から 60 までの整数か文字列で指定します。(60はうるう秒)
@param usec マイクロ秒を整数か文字列で指定します。
@raise ArgumentError 与えられた引数の範囲が valid でない場合に発生します。
//emlist[][ruby]{
p Time.local... -
irb (26138.0)
-
irb は Interactive Ruby の略です。 irb を使うと、Ruby の式を標準入力から簡単に入力・実行することができます。
...irb は Interactive Ruby の略です。
irb を使うと、Ruby の式を標準入力から簡単に入力・実行することができます。
=== irb の使い方
Ruby さえ知っていれば irb を使うのは簡単です。
irb コマンドを実行すると、以下のようなプロン......。
$ irb
irb(main):001:0>
あとは Ruby の式を入力するだけで、その式が実行され、結果が表示されます。
irb(main):001:0> 1+2
3
irb(main):002:0> class Foo
irb(main):003:1> def foo
irb(main):004:2> print 1
irb(main):005:2> end
irb(main):006:1>......い。
irb(main):004:0> x = "OK" # ローカル変数 x を定義
=> "OK"
irb(main):005:0> x # x を表示
=> "OK"
irb(main):006:0> irb # サブ irb を起動
irb#1(main):001:0> x # x を表示
NameError: undefined local variable or... -
Binding
# local _ variable _ defined?(symbol) -> bool (24343.0) -
引数 symbol で指定した名前のローカル変数が定義されている場合に true を、 そうでない場合に false を返します。
...そうでない場合に false を返します。
@param symbol ローカル変数名を Symbol オブジェクトで指定します。
//emlist[例][ruby]{
def foo
a = 1
binding.local_variable_defined?(:a) # => true
binding.local_variable_defined?(:b) # => false
end
//}
このメソッド......は以下のコードの短縮形です。
//emlist[][ruby]{
binding.eval("defined?(#{symbol}) == 'local-variable'")
//}
@see Binding#local_variable_get, Binding#local_variable_set... -
static void special
_ local _ set(char c , VALUE val) (24300.0) -
$~ と $_ をセットします。 現在は c=0 が $_ で c=1 が $~ です。
$~ と $_ をセットします。
現在は c=0 が $_ で c=1 が $~ です。 -
Binding
# local _ variable _ set(symbol , obj) (21379.0) -
引数 symbol で指定した名前のローカル変数に引数 obj を設定します。
...param symbol ローカル変数名を Symbol オブジェクトで指定します。
@param obj 引数 symbol で指定したローカル変数に設定するオブジェクトを指定します。
//emlist[例][ruby]{
def foo
a = 1
bind = binding
bind.local_variable_set(:a, 2) # set existin......g local variable `a'
bind.local_variable_set(:b, 3) # create new local variable `b'
# `b' exists only in binding
p bind.local_variable_get(:a) # => 2
p bind.local_variable_get(:b) # => 3
p a # => 2
p b......# => NameError
end
//}
このメソッドは以下のコード(ただし、obj が Ruby のコードで出力される場
合)と同様の動作をします。
//emlist[][ruby]{
binding.eval("#{symbol} = #{obj}")
//}
@see Binding#local_variable_get, Binding#local_variable_defined?... -
Binding
# local _ variable _ get(symbol) -> object (21337.0) -
引数 symbol で指定した名前のローカル変数に設定された値を返します。
...@param symbol ローカル変数名を Symbol オブジェクトで指定します。
@raise NameError 引数 symbol で指定したローカル変数が未定義の場合に発生します。
//emlist[例][ruby]{
def foo
a = 1
binding.local_variable_get(:a) # => 1
binding.local_variable_g......et(:b) # => NameError
end
//}
このメソッドは以下のコードの短縮形です。
//emlist[][ruby]{
binding.eval("#{symbol}")
//}
@see Binding#local_variable_set, Binding#local_variable_defined?... -
Binding
# local _ variables -> [Symbol] (21325.0) -
ローカル変数の一覧を Symbol の配列で返します。
...カル変数の一覧を Symbol の配列で返します。
//emlist[例][ruby]{
def foo
a = 1
2.times do |n|
binding.local_variables #=> [:a, :n]
end
end
//}
このメソッドは以下のコードと同様の動作をします。
//emlist[][ruby]{
binding.eval("local_variables")
//}...