396件ヒット
[201-300件を表示]
(0.045秒)
ライブラリ
- ビルトイン (60)
- csv (24)
-
minitest
/ spec (1) -
minitest
/ unit (3) - nkf (12)
- rss (216)
- rubygems (12)
- strscan (48)
-
test
/ unit (1)
クラス
- CSV (24)
-
MiniTest
:: Unit (2) - Module (1)
-
RSS
:: Maker :: ChannelBase (24) -
RSS
:: Maker :: ChannelBase :: SkipDaysBase (12) -
RSS
:: Maker :: ChannelBase :: SkipDaysBase :: DayBase (24) -
RSS
:: Maker :: ChannelBase :: SkipHoursBase (12) -
RSS
:: Maker :: ChannelBase :: SkipHoursBase :: HourBase (24) -
RSS
:: Rss :: Channel (48) -
RSS
:: Rss :: SkipDays (36) -
RSS
:: Rss :: SkipHours (36) - StringScanner (48)
-
Thread
:: Backtrace :: Location (48)
モジュール
- Kernel (12)
-
MiniTest
:: Assertions (1) -
Test
:: Unit (1)
キーワード
- Location (12)
-
NEWS for Ruby 3
. 0 . 0 (5) - NKF (12)
-
absolute
_ path (12) -
base
_ label (12) - content (24)
- content= (24)
- day (12)
- day= (12)
- days (12)
- gem (12)
- hour (12)
- hour= (12)
- hours (12)
-
infect
_ with _ assertions (1) - inspect (12)
-
minitest
/ unit (1) - new (12)
-
new
_ day (12) -
new
_ hour (12) - puke (1)
-
ruby 1
. 8 . 4 feature (12) -
scan
_ full (12) -
search
_ full (12) -
setup
_ argv (1) - skipDays (24)
- skipDays= (12)
- skipHours (24)
- skipHours= (12)
-
skip
_ blanks? (12) -
skip
_ until (12) - skips= (1)
-
test
/ unit (1) -
to
_ s (12)
検索結果
先頭5件
-
RSS
:: Rss :: SkipDays # day= (3016.0) -
@todo
...@todo... -
RSS
:: Rss :: SkipDays # days (3016.0) -
@todo
...@todo... -
RSS
:: Rss :: SkipHours # hour (3016.0) -
@todo
...@todo... -
RSS
:: Rss :: SkipHours # hour= (3016.0) -
@todo
...@todo... -
RSS
:: Rss :: SkipHours # hours (3016.0) -
@todo
...@todo... -
ruby 1
. 8 . 4 feature (414.0) -
ruby 1.8.4 feature ruby 1.8.4 での ruby 1.8.3 からの変更点です。
...# => ruby 1.8.4 (2005-12-16) [i686-linux]
-:1: empty symbol literal
: Symbol [bug]
#Sat Oct 22 13:26:57 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
#
# * object.c (sym_inspect), parse.y (parser_yylex, rb_symname_p): check
# if valid as a symbol name more strictly. [r......puts :"@1".inspect
puts :"@@1".inspect
puts :"@".inspect
puts :"@@".inspect
# => ruby 1.8.3 (2005-09-21) [i686-linux]
:!
:=
:0
:$1
:@1
:@@1......: File.split [change]
: File.basename [change]
: File.dirname [change]
#Tue Nov 22 14:46:57 2005 NAKAMURA Usaku <usa@ruby-lang.org>
#
# * file.c (rb_file_s_basename): skip slashes just after UNC top slashes.
#
# * test/ruby/test_path.rb (test_dirname, test_basename): follow new
#... -
Module
# infect _ with _ assertions(positive _ prefix , negative _ prefix , skip _ regexp , map = {}) -> () (131.0) -
BDD 風にテストを書くために使用するメソッド群を定義します。
...します。
@param positive_prefix assert の代わりのプレフィックスを指定します。
@param negative_prefix refute の代わりのプレフィックスを指定します。
@param skip_regexp この正規表現にマッチしたメソッドは定義しません。
@param map メ... -
Kernel
# gem(gem _ name , *version _ requirements) -> bool (54.0) -
$LOAD_PATH に Ruby Gem を追加します。
...=== 環境変数 GEM_SKIP
特定の Gem をロードしないようにするために環境変数 GEM_SKIP を定義することができます。
特定の Gem がまだインストールされていないという状況を試すために使用できます。
例:
GEM_SKIP=libA:libB ruby-I../l......ibA -I../libB ./mycode.rb
@param gem Gem の名前の文字列か、Gem の依存関係を Gem::Dependency のインスタンスで指定します。
@param version_requirements 必要とする gem のバージョンを指定します。
@return Gem がロードできた場合は true を返し......します。
@raise Gem::LoadError 指定された Gem やその Gem が必要とする Gem が見つからなかった場合に発生します。
ただし、環境変数 GEM_SKIP に指定されている Gem に関してはこの例外は発生しません。
@see Gem::Vers... -
Thread
:: Backtrace :: Location (54.0) -
Ruby のフレームを表すクラスです。
...。
Kernel.#caller_locations から生成されます。
//emlist[例1][ruby]{
# caller_locations.rb
def a(skip)
caller_locations(skip)
end
def b(skip)
a(skip)
end
def c(skip)
b(skip)
end
c(0..2).map do |call|
puts call.to_s
end
//}
例1の実行結果:
caller_locations.rb:2:in `a'......b:5:in `b'
caller_locations.rb:8:in `c'
//emlist[例2][ruby]{
# foo.rb
class Foo
attr_accessor :locations
def initialize(skip)
@locations = caller_locations(skip)
end
end
Foo.new(0..2).locations.map do |call|
puts call.to_s
end
//}
例2の実行結果:
init.rb:4:in `initialize'... -
minitest
/ unit (42.0) -
ユニットテストを行うためのライブラリです。
...MiniTest::Unit::TestCase
def setup
@foo = Foo.new
end
# teardown はあまり使わない
def teardown
@foo = nil
end
def test_foo
assert_equal "foo", @foo.foo
end
def test_bar
assert_equal "bar", @foo.bar
end
end
または MiniTe......0 seconds.
1) Failure:
test_bar(TestFoo) [test_foo.rb:20]:
Expected "bar", not "foo".
2 tests, 2 assertions, 1 failures, 0 errors, 0 skips
test_bar だけテストしたい場合は以下のようなオプションを与えます。
$ ruby test_foo.rb -n test_bar
Loaded suite t......0 seconds.
1) Failure:
test_bar(TestFoo) [test_foo.rb:20]:
Expected "bar", not "foo".
1 tests, 1 assertions, 1 failures, 0 errors, 0 skips
コンソールを使った testrunner のみ提供されています。
またヘルプを表示することもできません。
=== 使用... -
CSV
. new(data , options = Hash . new) -> CSV (36.0) -
このメソッドは CSV ファイルを読み込んだり、書き出したりするために String か IO のインスタンスをラップします。
...ingIO を渡してください。
@param data String か IO のインスタンスを指定します。
String のインスタンスを指定した場合、CSV#string を使用して
後からデータを取り出すことが出来ます。
@param options CSV をパースす......した場合はヘッダは変換されま
せん。
: :skip_blanks
真を指定すると、空行を読み飛ばします。
: :force_quotes
真を指定すると、全てのフィールドを作成時にクオートします。
: :skip_lines
指定した正規表現にマッチしたそれ......ぞれの行をコメントとして読み飛ばします。
@raise CSV::MalformedCSVError 不正な CSV をパースしようとしたときに発生します。
//emlist[例: ファイルの読み込み][ruby]{
require "csv"
users =<<-EOS
id,first name,last name,age
1,taro,tanaka,20
2,jiro,suzu...