2148件ヒット
[2101-2148件を表示]
(0.104秒)
別のキーワード
ライブラリ
- ビルトイン (1206)
- abbrev (12)
- forwardable (24)
- json (228)
-
json
/ add / date (12) -
json
/ add / date _ time (12) -
json
/ add / rational (12) - logger (24)
- matrix (24)
-
net
/ http (12) - open-uri (12)
- optparse (36)
- pathname (48)
- rake (84)
-
rake
/ packagetask (12) -
rexml
/ document (144) -
ripper
/ lexer (16) -
rubygems
/ gem _ path _ searcher (12) -
rubygems
/ installer (12) -
rubygems
/ specification (24) - stringio (74)
- strscan (96)
- win32ole (12)
クラス
-
ARGF
. class (12) - Array (33)
- Binding (7)
- Class (12)
- Data (6)
- Date (12)
- DateTime (12)
- Dir (24)
- Enumerator (24)
- File (24)
-
File
:: Stat (24) - Float (24)
-
Gem
:: GemPathSearcher (12) -
Gem
:: Installer (12) -
Gem
:: Specification (24) - IO (6)
-
JSON
:: State (108) - Logger (24)
- MatchData (158)
- Matrix (24)
- Method (12)
- Module (216)
-
Net
:: HTTPGenericRequest (12) - Object (15)
- OptionParser (36)
- Pathname (48)
- Proc (12)
-
REXML
:: Attribute (36) -
REXML
:: Attributes (36) -
REXML
:: CData (24) -
REXML
:: DocType (12) -
REXML
:: Element (36) -
Rake
:: Application (36) -
Rake
:: FileList (36) -
Rake
:: InvocationChain (12) -
Rake
:: PackageTask (12) - Range (33)
- Rational (36)
-
Ripper
:: Lexer (16) -
RubyVM
:: InstructionSequence (34) - String (413)
- StringIO (74)
- StringScanner (96)
- Symbol (9)
-
Thread
:: Backtrace :: Location (72) - Time (12)
- TracePoint (12)
- UnboundMethod (12)
-
WIN32OLE
_ TYPELIB (12)
モジュール
- Forwardable (24)
-
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) -
OpenURI
:: Meta (12)
キーワード
- % (14)
- [] (60)
- abbrev (12)
-
absolute
_ path (24) -
add
_ element (12) -
array
_ nl (12) - attr (36)
-
attr
_ accessor (12) -
attr
_ reader (12) -
attr
_ writer (12) -
attribute
_ of (12) - autoload (12)
-
base
_ label (12) - binread (12)
- byteindex (3)
- byterindex (3)
- bytes (7)
- captures (12)
- concat (33)
-
const
_ source _ location (12) -
datetime
_ format (12) - deconstruct (2)
- delegate (12)
-
deprecate
_ constant (12) - dev (12)
- each (12)
-
each
_ byte (24) -
each
_ char (12) -
each
_ codepoint (12) -
each
_ grapheme _ cluster (8) -
each
_ line (24) -
formatted
_ program _ filename (12) - formatter (12)
- ftype (12)
- gsub (48)
- gsub! (60)
- indent (12)
- indent= (12)
- index (12)
- inspect (63)
-
instance
_ delegate (12) -
json
_ creatable? (12) - label (12)
- lex (8)
-
lib
_ dirs _ for (12) - lines (7)
- match (24)
- match? (30)
- matched (12)
- matched? (12)
-
matched
_ size (12) - name (12)
- names (12)
- namespace (12)
- namespaces (12)
-
object
_ nl (12) -
object
_ nl= (12) - on (36)
-
original
_ dir (12) - pack (21)
-
package
_ dir _ path (12) - parse (8)
- path (99)
- pathmap (12)
-
post
_ match (24) -
pre
_ match (24) - prefix (12)
- prefixes (12)
- printf (12)
- private (48)
-
private
_ class _ method (24) -
private
_ constant (12) -
private
_ method _ defined? (12) - rakefile (12)
-
remove
_ const (12) - rindex (12)
-
rubygems
_ version (12) - scan (24)
-
source
_ location (43) - space (12)
- space= (12)
-
space
_ before (12) -
space
_ before= (12) - status (12)
- step (19)
- strftime (12)
- sub (60)
- sub! (48)
- terminate (12)
- text (12)
- then (7)
-
to
_ a (12) -
to
_ binary (10) -
to
_ f (12) -
to
_ json (144) -
to
_ path (27) -
to
_ r (12) -
to
_ ruby (12) -
to
_ s (99) -
to
_ string (12) - tr (12)
-
tr
_ s (12) -
tr
_ s! (12) - truncate (12)
- unpack (12)
- unpack1 (9)
- value (12)
-
values
_ at (12) -
with
_ object (24) - xpath (12)
-
yield
_ self (8)
検索結果
先頭5件
-
REXML
:: Element # add _ element(element , attrs = nil) -> Element (119.0) -
子要素を追加します。
...素を追加します。
attrs に { String => String } という Hash を渡すと、
追加する要素の属性を指定できます。
子要素の最後に追加されます。
返り値は追加された要素です。
@param element 追加する要素
@param attrs 追加する要素に設......る属性
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new('<a/>')
el = doc.root.add_element 'my-tag' # => <my-tag/>
doc.root.to_s # => "<a><my-tag/></a>"
el = doc.root.add_element 'my-tag', {'attr1'=>'val1', 'attr2'=>'val2'}
# => <my-tag attr1='val1' attr2='val2'/>
doc.root.to_......s # => "<a><my-tag/><my-tag attr1='val1' attr2='val2'/></a>"
el = REXML::Element.new 'my-tag'
doc.root.add_element el # => <my-tag/>
doc.root.to_s # => "<a><my-tag/><my-tag attr1='val1' attr2='val2'/><my-tag/></a>"
//}
@see REXML::Elements#add, REXML::Element.new... -
Range
# %(s) -> Enumerator (119.0) -
範囲内の要素を s おきに繰り返します。
...しなかった時かつ数値の Range の時は Enumerator::ArithmeticSequence を返します。
@return ブロックを指定しなかったその他の Range の時は Enumerator を返します。(例: String の Range)
//emlist[例][ruby]{
(1..10).step(3) {|v| p v}
# => 1
# 4
# 7
#......を除きます)
//emlist[数値以外の Range に対する例][ruby]{
# Time の Range は each でイテレートできない
(Time.utc(2024, 12, 25)...Time.utc(2024, 12, 26)).each { |t| p t }
# => 'Range#each': can't iterate from Time (TypeError)
# step は使用可能
(Time.utc(2024, 12, 25... -
Range
# %(s) -> Enumerator :: ArithmeticSequence (119.0) -
範囲内の要素を s おきに繰り返します。
...しなかった時かつ数値の Range の時は Enumerator::ArithmeticSequence を返します。
@return ブロックを指定しなかったその他の Range の時は Enumerator を返します。(例: String の Range)
//emlist[例][ruby]{
(1..10).step(3) {|v| p v}
# => 1
# 4
# 7
#......を除きます)
//emlist[数値以外の Range に対する例][ruby]{
# Time の Range は each でイテレートできない
(Time.utc(2024, 12, 25)...Time.utc(2024, 12, 26)).each { |t| p t }
# => 'Range#each': can't iterate from Time (TypeError)
# step は使用可能
(Time.utc(2024, 12, 25... -
Range
# step(s = 1) -> Enumerator (119.0) -
範囲内の要素を s おきに繰り返します。
...しなかった時かつ数値の Range の時は Enumerator::ArithmeticSequence を返します。
@return ブロックを指定しなかったその他の Range の時は Enumerator を返します。(例: String の Range)
//emlist[例][ruby]{
(1..10).step(3) {|v| p v}
# => 1
# 4
# 7
#......を除きます)
//emlist[数値以外の Range に対する例][ruby]{
# Time の Range は each でイテレートできない
(Time.utc(2024, 12, 25)...Time.utc(2024, 12, 26)).each { |t| p t }
# => 'Range#each': can't iterate from Time (TypeError)
# step は使用可能
(Time.utc(2024, 12, 25... -
Range
# step(s = 1) -> Enumerator :: ArithmeticSequence (119.0) -
範囲内の要素を s おきに繰り返します。
...しなかった時かつ数値の Range の時は Enumerator::ArithmeticSequence を返します。
@return ブロックを指定しなかったその他の Range の時は Enumerator を返します。(例: String の Range)
//emlist[例][ruby]{
(1..10).step(3) {|v| p v}
# => 1
# 4
# 7
#......を除きます)
//emlist[数値以外の Range に対する例][ruby]{
# Time の Range は each でイテレートできない
(Time.utc(2024, 12, 25)...Time.utc(2024, 12, 26)).each { |t| p t }
# => 'Range#each': can't iterate from Time (TypeError)
# step は使用可能
(Time.utc(2024, 12, 25... -
Range
# %(s) -> Enumerator (113.0) -
範囲内の要素を s おきに繰り返します。
...しなかった時かつ数値の Range の時は Enumerator::ArithmeticSequence を返します。
@return ブロックを指定しなかったその他の Range の時は Enumerator を返します。(例: String の Range)
//emlist[例][ruby]{
(1..10).step(3) {|v| p v}
# => 1
# 4
# 7
#... -
Range
# %(s) -> Enumerator :: ArithmeticSequence (113.0) -
範囲内の要素を s おきに繰り返します。
...しなかった時かつ数値の Range の時は Enumerator::ArithmeticSequence を返します。
@return ブロックを指定しなかったその他の Range の時は Enumerator を返します。(例: String の Range)
//emlist[例][ruby]{
(1..10).step(3) {|v| p v}
# => 1
# 4
# 7
#... -
Range
# step(s = 1) -> Enumerator (113.0) -
範囲内の要素を s おきに繰り返します。
...しなかった時かつ数値の Range の時は Enumerator::ArithmeticSequence を返します。
@return ブロックを指定しなかったその他の Range の時は Enumerator を返します。(例: String の Range)
//emlist[例][ruby]{
(1..10).step(3) {|v| p v}
# => 1
# 4
# 7
#... -
Range
# step(s = 1) -> Enumerator :: ArithmeticSequence (113.0) -
範囲内の要素を s おきに繰り返します。
...しなかった時かつ数値の Range の時は Enumerator::ArithmeticSequence を返します。
@return ブロックを指定しなかったその他の Range の時は Enumerator を返します。(例: String の Range)
//emlist[例][ruby]{
(1..10).step(3) {|v| p v}
# => 1
# 4
# 7
#... -
Module
# remove _ const(name) -> object (19.0) -
name で指定した定数を取り除き、その定数に設定されていた値を 返します。
...name String または Symbol を指定します。
@return 引数で指定された定数に設定されていた値を返します。
@raise NameError 引数で指定された定数がそのモジュールやクラスに定義されていない場合に発生します。
//emlist[例][ruby]{
cl......ass Foo
FOO = 1
p remove_const(:FOO) # => 1
p FOO # => uninitialized constant FOO at Foo (NameError)
end
//}
組み込みクラス/モジュールを設定している定数や Kernel.#autoload を指定した(まだロードしてない)定数を含めて削除する事ができます...