るりまサーチ

最速Rubyリファレンスマニュアル検索!
407件ヒット [1-100件を表示] (0.178秒)
トップページ > クエリ:E[x] > クエリ:Extend[x] > クエリ:Require[x]

別のキーワード

  1. open3 popen2e
  2. socket af_e164
  3. matrix det_e
  4. matrix rank_e
  5. open3 capture2e

検索結果

<< 1 2 3 ... > >>

ERB::DefMethod.#def_erb_method(methodname, erb) -> nil (29112.0)

self に erb のスクリプトをメソッドとして定義します。

...self に erb のスクリプトをメソッドとして定義します。

メソッド名は methodname で指定します。
e
rb が文字列の時、そのファイルを読み込み ERB で変換したのち、メソッドとして定義します。

@param methodname メソッド名

@param er...
...b ERBインスタンスもしくはERBソースファイル名

例:

require
'erb'
class Writer
extend
ERB::DefMethod
def_erb_method('to_html', 'writer.erb')
...
e
nd
...
puts writer.to_html...

IRB::ExtendCommand::Require (27016.0)

irb 中の irb_require コマンドのための拡張を定義したクラスです。

...irb 中の irb_require コマンドのための拡張を定義したクラスです。...

IRB::ContextExtender.install_extend_commands -> object (21219.0)

定義済みの拡張を読み込みます。

...Context で以下のメソッドが利用できるようになります。

* eval_history=
* use_tracer=
* math_mode=
* use_loader=
* save_history=

irb/extend-command が require された時にライブラリ内部で自動的
に実行されます。

@see IRB::ContextExtender.def_extend_co...

IRB::ContextExtender.def_extend_command(cmd_name, load_file, *aliases) -> object (21207.0)

IRB::Context に cmd_name で指定したメソッドが実行できるように拡張 します。

...IRB::Context に cmd_name で指定したメソッドが実行できるように拡張
します。

@param cmd_name メソッド名を Symbol で指定します。
IRB::Context クラスのインスタンスメソッドとして定
義してある必要がありま...
...す。

@param load_file cmd_name で指定したメソッドが定義されたファイル名を指
定します。このファイルは自動的に require されます。

@param aliases cmd_name の別名を Symbol で指定します。複数指定する事ができます。...

IRB::ExtendCommandBundle.install_extend_commands -> object (18225.0)

定義済みの拡張を読み込みます。

...1 つだけ抜粋)

* irb_current_working_workspace
* irb_change_workspace
* irb_workspaces
* irb_push_workspace
* irb_pop_workspace
* irb_load
* irb_require
* irb_source
* irb
* irb_jobs
* irb_fg
* irb_kill
* irb_help

irb/extend-command が require された時にライブラリ内...
...部で自動的
に実行されます。

@see IRB::ExtendCommandBundle.install_extend_commands...

絞り込み条件を変える

IRB::ExtendCommandBundle.def_extend_command(cmd_name, cmd_class, load_file = nil, *aliases) -> object (18207.0)

irb に cmd_name で指定したメソッドが実行できるように拡張します。

...irb に cmd_name で指定したメソッドが実行できるように拡張します。

@param cmd_name メソッド名を Symbol か文字列で指定します。
cmd_class で指定するクラスの execute メソッドとして定
義してある必要があ...
...スは IRB::ExtendCommand 以下で定義
する必要があります。

@param load_file 指定したメソッドが定義されたファイル名を指
定します。このファイルは自動的に require されます。

@param aliases cmd_name の別名を...
...す。複数指定する事ができます。フラグは
IRB::ExtendCommandBundle::NO_OVERRIDE
IRB::ExtendCommandBundle::OVERRIDE_PRIVATE_ONLY、
IRB::ExtendCommandBundle::OVERRIDE_ALL のいずれか
を指定します。...

IRB::ExtendCommandBundle#irb_require(*opts, &b) -> bool (15223.0)

現在の irb に関する IRB::Context に対して irb_require コマンドを 実行します。

...現在の irb に関する IRB::Context に対して irb_require コマンドを
実行します。

@see IRB::ExtendCommand::Require#execute...

IRB::ExtendCommand::Require#execute(file_name) -> bool (15118.0)

ファイル file_name を現在の irb インタプリタ上で実行します。

...ル file_name を現在の irb インタプリタ上で実行します。

file_name に Ruby スクリプトを指定した場合は、Kernel.#require と異
なり、file_name の内容を irb で一行ずつタイプしたかのように、irb 上で一
行ずつ評価されます。require...
...成功した場合は true を、そうでない場合は
false を返します。

拡張ライブラリ(*.so,*.o,*.dll など)を指定した場合は単純に require され
ます。

@param file_name ファイル名を文字列で指定します。...

JSON::Generator::GeneratorMethods::String::Extend.json_create(hash) -> String (15106.0)

JSON のオブジェクトから Ruby の文字列を生成して返します。

...のオブジェクトから Ruby の文字列を生成して返します。

@param hash キーとして "raw" という文字列を持ち、その値として数値の配列を持つハッシュを指定します。

require
'json'
String.json_create({"raw" => [0x41, 0x42, 0x43]}) # => "ABC"...

OpenURI::OpenRead#read(options = {}) -> String (9122.0)

自身が表す内容を読み込んで文字列として返します。 self.open(options={}) {|io| io.read } と同じです。 このメソッドによって返される文字列は OpenURI::Meta によって extend されています。

...self.open(options={}) {|io| io.read } と同じです。
このメソッドによって返される文字列は OpenURI::Meta
によって extend されています。

@param options ハッシュを与えます。

require
'open-uri'
uri = URI.parse('http://www.example.com/')
str = uri.read...
...p str.is_a?(OpenURI::Meta) # => true
p str.content_type...

絞り込み条件を変える

<< 1 2 3 ... > >>