るりまサーチ

最速Rubyリファレンスマニュアル検索!
1903件ヒット [1-100件を表示] (0.127秒)

別のキーワード

  1. _builtin to_a
  2. matrix to_a
  3. to_a
  4. dbm to_a
  5. argf.class to_a

ライブラリ

キーワード

検索結果

<< 1 2 3 ... > >>

CGI::HtmlExtension#base(href = "") -> String (24230.0)

base 要素を生成します。

...
base
要素を生成します。

@param href 文字列を指定します。属性をハッシュで指定することもできます。

例:
base
("http://www.example.com/cgi")
# => "<BASE HREF=\"http://www.example.com/cgi\">"...

Pathname#relative_path_from(base_directory) -> Pathname (15454.0)

base_directory から self への相対パスを求め、その内容の新しい Pathname オブジェクトを生成して返します。

...base_directory から self への相対パスを求め、その内容の新しい Pathname
オブジェクトを生成して返します。

パス名の解決は文字列操作によって行われ、ファイルシステムをアクセス
しません。

self が相対パスなら base_directory...
...、self が絶対パスなら
base
_directory も絶対パスでなければなりません。

@param base_directory ベースディレクトリを表す Pathname オブジェクトを指定します。

@raise ArgumentError Windows上でドライブが違うなど、base_directory から self へ...
...の相対パスが求められないときに例外が発生します。

//emlist[例][ruby]{
require 'pathname'

path = Pathname.new("/tmp/foo")
base
= Pathname.new("/tmp")

path.relative_path_from(base) # => #<Pathname:foo>
//}...

RSS::SyndicationModel#sy_updateBase (15201.0)

@todo

@todo

RSS::SyndicationModel#sy_updateBase= (15201.0)

@todo

@todo

RSS::Maker::ChannelBase::CategoriesBase::CategoryBase#domain (15101.0)

@todo

@todo

絞り込み条件を変える

RSS::Maker::ChannelBase::CategoriesBase::CategoryBase#domain=() (15101.0)

@todo

@todo

RubyVM::InstructionSequence#base_label -> String (12220.0)

self が表す命令シーケンスの基本ラベルを返します。

...piled>>
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...

OpenURI::Meta#base_uri -> URI (12208.0)

リソースの実際の URI を URI オブジェクトとして返します。 リダイレクトされた場合は、リダイレクトされた後のデータが存在する URI を返します。

...します。
リダイレクトされた場合は、リダイレクトされた後のデータが存在する URI を返します。

//emlist[例][ruby]{
require 'open-uri'
open('http://www.ruby-lang.org/') {|f|
p f.base_uri
#=> #<URI::HTTP:0xb7043aa0 URL:http://www.ruby-lang.org/en/>
}
//}...
...ます。
リダイレクトされた場合は、リダイレクトされた後のデータが存在する URI を返します。

//emlist[例][ruby]{
require 'open-uri'
URI.open('http://www.ruby-lang.org/') {|f|
p f.base_uri
#=> #<URI::HTTP:0xb7043aa0 URL:http://www.ruby-lang.org/en/>
}
//}...

Thread::Backtrace::Location#base_label -> String (12208.0)

self が表すフレームの基本ラベルを返します。通常、 Thread::Backtrace::Location#label から修飾を取り除いたもので構成 されます。

...Thread::Backtrace::Location#label から修飾を取り除いたもので構成
されます。

//emlist[例][ruby]{
# foo.rb
class Foo
a
ttr_accessor :locations
def initialize(skip)
@locations = caller_locations(skip)
end
end

Foo.new(0..2).locations.map do |call|
puts call.base_label...
...end

# => initialize
# new
# <main>
//}

@see Thread::Backtrace::Location#label...
<< 1 2 3 ... > >>