88件ヒット
[1-88件を表示]
(0.129秒)
種類
- インスタンスメソッド (44)
- 文書 (22)
- ライブラリ (11)
- 特異メソッド (11)
ライブラリ
- rake (33)
-
rexml
/ document (22)
クラス
-
REXML
:: Attributes (22) -
Rake
:: NameSpace (11)
モジュール
- Kernel (11)
-
Rake
:: TaskManager (11)
キーワード
- Ruby用語集 (11)
- each (11)
-
each
_ attribute (11) -
in
_ namespace (11) - new (11)
- rake (11)
-
ruby 1
. 8 . 4 feature (11)
検索結果
先頭5件
-
Kernel
# namespace(name = nil) { . . . } -> Rake :: NameSpace (18326.0) -
新しい名前空間を作成します。
...新しい名前空間を作成します。
与えられたブロックを評価する間は、その名前空間を使用します。
例:
ns = namespace "nested" do
task :run
end
task_run = ns[:run] # find :run in the given namespace.
@see Rake::TaskManager#in_namespace... -
Rake
:: TaskManager # in _ namespace(name) {|name _ space| . . . } -> Array (12237.0) -
与えられた名前の名前空間でブロックを評価します。
...ます。
@param name 名前を指定します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
namespace :sample do
def hoge
puts "hoge"
end
end
task :test_rake_app do
task.application.in_namespace("sample") do
hoge # => "hoge"
end
end
//}... -
REXML
:: Attributes # each _ attribute {|attribute| . . . } -> () (9212.0) -
各属性に対しブロックを呼び出します。
...ttribute オブジェクトで渡されます。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<root xmlns:foo="http://example.org/foo"
xmlns:bar="http://example.org/bar">
<a foo:att='1' bar:att='2' att='<'/>
</root>
EOS
a = doc.get_elements("/root/a").firs......t
a.attributes.each_attribute do |attr|
p [attr.namespace, attr.name, attr.value]
end
# => ["http://example.org/foo", "att", "1"]
# => ["http://example.org/bar", "att", "2"]
# => ["", "att", "<"]
//}... -
Rake
:: NameSpace . new(task _ manager , scope _ list) (3112.0) -
自身を初期化します。
...ger Rake::Application のインスタンスを指定します。
@param scope_list 名前空間のリストを指定します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
name_space = Rake::NameSpace.new(Rake.application, Rake::Sco......pe.new("sample"))
name_space.scope # => LL("sample")
end
//}... -
REXML
:: Attributes # each {|name , value| . . . } -> () (3012.0) -
各属性の名前と値に対しブロックを呼び出します。
...::Namespace#exapnded_name)が
渡されます。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<root xmlns:foo="http://example.org/foo"
xmlns:bar="http://example.org/bar">
<a foo:att='1' bar:att='2' att='<'/>
</root>
EOS
a = doc.get_elements("/root/a").firs......t
a.attributes.each do |name, value|
p [name, value]
end
# => ["foo:att", "1"]
# => ["bar:att", "2"]
# => ["att", "<"]
//}... -
ruby 1
. 8 . 4 feature (198.0) -
ruby 1.8.4 feature ruby 1.8.4 での ruby 1.8.3 からの変更点です。
...更
# * [api]: 拡張ライブラリ API
# * [lib]: ライブラリ
* レベル
* [bug]: バグ修正
* [new]: 追加されたクラス/メソッドなど
* [compat]: 変更されたクラス/メソッドなど
* 互換性のある変更
* only backward-compatibility
* 影...... if valid as a symbol name more strictly. [ruby-dev:27478]
#
# * test/ruby/test_symbol.rb: tests for [ruby-core:03573].
Symbolに適合する文字列を厳密にした。((<ruby-core:03573>)),((<ruby-dev:27478>))
1) alias :"foo" :"bar"
def bar; p "bar"; end......直接に TclTkIp オブジェクトを取り出して操作
されることは回避できませんので,ご注意ください。
# * ext/tk/lib/tk.rb: bug fix on handling of Tcl's namespaces.
#
# * ext/tk/lib/tk/namespace.rb: ditto.
#
Tcl/Tk 上の namespace の扱いが... -
Ruby用語集 (64.0)
-
Ruby用語集 A B C D E F G I J M N O R S Y
...Ruby用語集
A B C D E F G I J M N O R S Y
a ka sa ta na ha ma ya ra wa
=== 記号・数字
: %記法
: % notation
「%」記号で始まる多種多様なリテラル記法の総称。
参照:d:spec/literal#percent
: 0 オリジン
: zero-ba...... Implementation)とも呼ばれる。
: Crystal
Ruby によく似たオブジェクト指向プログラミング言語。
型推論を持った静的型付け言語であり、処理系はコンパイラーである。
https://ja.crystal-lang.org/
: CSI 方式
CSI は Code Set Independ......モジュール定義、
クラス定義、メソッド定義の外側である。
トップレベルでは main が self となる。
===[a:na] な
: 名前空間
: namespace
メソッドや定数の名前の衝突を避ける仕組み。
クラスやモジュールは一つの名前空... -
rake (36.0)
-
Rake というコマンドラインツールを扱うライブラリです。
...ake は以下のような特徴を持っています。
* Rakefile (Rake における Makefile) は標準的な Ruby の文法で書くことができます。
XML ファイルを編集する必要はありませんし、Makefile の風変わりな文法 (タブだっけ?スペースだっ......* Rakefile をより簡単に作成するためにこのライブラリにはいくつかのタスクが同梱されています。
@see make(1)
=== Rake コマンドの使い方
$ rake --help
rake [-f rakefile] {options} targets...
Options are ...
-C, --classic-namespace ト......。Rakefile は普通の Ruby スクリプトと同じ文法で
書くことができるので工夫次第で Ruby にできることなら何でもできます。
簡単な例:
# coding: utf-8
task :hello do
puts 'do task hello!'
end
動的にタスクを定義する例:
# coding: utf...