643件ヒット
[1-100件を表示]
(0.108秒)
別のキーワード
ライブラリ
クラス
- Array (21)
- Bignum (6)
-
Digest
:: Base (204) - Fixnum (6)
- Integer (48)
-
Net
:: FTP (144) -
Net
:: IMAP (24) -
OpenSSL
:: BN (12) - Pathname (64)
-
RubyVM
:: InstructionSequence (24) - Shell (6)
-
Shell
:: CommandProcessor (6) -
Shell
:: Filter (6) - String (24)
-
Thread
:: Backtrace :: Location (24)
モジュール
-
CGI
:: HtmlExtension (12) -
OpenURI
:: Meta (12)
キーワード
- << (12)
- == (24)
-
base
_ label (24) -
base
_ uri (12) - basename (30)
-
block
_ length (12) - clone (12)
- digest (12)
- digest! (12)
-
digest
_ length (12) - digits (24)
- dup (12)
- file (12)
- get (24)
- getbinaryfile (24)
- gettextfile (24)
- glob (16)
- hexdigest (12)
- hexdigest! (12)
- inspect (18)
- label (24)
- length (12)
- pack (21)
- put (24)
- putbinaryfile (24)
- puttextfile (24)
- realdirpath (12)
- realpath (12)
-
relative
_ path _ from (12) - reset (12)
- size (12)
- sort (12)
-
to
_ i (12) -
to
_ s (42) -
uid
_ sort (12) - unpack (12)
- update (12)
検索結果
先頭5件
-
CGI
:: HtmlExtension # base(href = "") -> String (18230.0) -
base 要素を生成します。
...
base 要素を生成します。
@param href 文字列を指定します。属性をハッシュで指定することもできます。
例:
base("http://www.example.com/cgi")
# => "<BASE HREF=\"http://www.example.com/cgi\">"... -
RubyVM
:: InstructionSequence # base _ label -> String (6232.0) -
self が表す命令シーケンスの基本ラベルを返します。
...nce.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::InstructionSeque......nce.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... -
Thread
:: Backtrace :: Location # base _ label -> String (6214.0) -
self が表すフレームの基本ラベルを返します。通常、 Thread::Backtrace::Location#label から修飾を取り除いたもので構成 されます。
...されます。
//emlist[例][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.base_label
end
# => initialize
# new
# <main>
//}
@see Thread::Backtrace::Location#label... -
OpenURI
:: Meta # base _ uri -> URI (6208.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/>
}
//}... -
Pathname
# basename(suffix = "") -> Pathname (6201.0) -
Pathname.new(File.basename(self.to_s, suffix)) と同じです。
...Pathname.new(File.basename(self.to_s, suffix)) と同じです。
@param suffix サフィックスを文字列で与えます。'.*' という文字列を与えた場合、'*' はワイルドカードとして働き
'.' を含まない任意の文字列にマッチします。
//emli......ruby.c").basename #=> #<Pathname:"ruby.c">
Pathname("ruby/ruby.c").basename(".c") #=> #<Pathname:"ruby">
Pathname("ruby/ruby.c").basename(".*") #=> #<Pathname:"ruby">
Pathname("ruby/ruby.exe").basename(".*") #=> #<Pathname:"ruby">
Pathname("ruby/y.tab.c").basename(".*") #=> #<Pathn......ame:"y.tab">
//}
@see File.basename... -
Shell
# basename(filename , suffix = "") -> String (6201.0) -
File クラスにある同名のクラスメソッドと同じです.
...イル名を表す文字列を指定します。
@param suffix サフィックスを文字列で与えます。'.*' という文字列を与えた場合、'*' はワイルドカードとして働き
'.' を含まない任意の文字列にマッチします。
@see File.basename... -
Shell
:: CommandProcessor # basename(filename , suffix = "") -> String (6201.0) -
File クラスにある同名のクラスメソッドと同じです.
...イル名を表す文字列を指定します。
@param suffix サフィックスを文字列で与えます。'.*' という文字列を与えた場合、'*' はワイルドカードとして働き
'.' を含まない任意の文字列にマッチします。
@see File.basename... -
Shell
:: Filter # basename(filename , suffix = "") -> String (6201.0) -
File クラスにある同名のクラスメソッドと同じです.
...イル名を表す文字列を指定します。
@param suffix サフィックスを文字列で与えます。'.*' という文字列を与えた場合、'*' はワイルドカードとして働き
'.' を含まない任意の文字列にマッチします。
@see File.basename... -
Digest
:: Base # clone -> Digest :: Base (3203.0) -
ダイジェストオブジェクトの複製を作ります。
ダイジェストオブジェクトの複製を作ります。 -
Digest
:: Base # dup -> Digest :: Base (3203.0) -
ダイジェストオブジェクトの複製を作ります。
ダイジェストオブジェクトの複製を作ります。