253件ヒット
[1-100件を表示]
(0.024秒)
別のキーワード
ライブラリ
- ビルトイン (24)
-
irb
/ extend-command (12) - json (96)
- objspace (24)
-
rubygems
/ source _ index (12) -
win32
/ registry (12) - win32ole (12)
クラス
-
Gem
:: SourceIndex (12) -
JSON
:: Parser (36) - Method (12)
- UnboundMethod (12)
-
WIN32OLE
_ TYPE (12)
モジュール
-
IRB
:: ExtendCommandBundle (12) - JSON (48)
-
JSON
:: Generator :: GeneratorMethods :: String (12) - ObjectSpace (24)
-
Win32
:: Registry :: Constants (12)
キーワード
-
NEWS for Ruby 2
. 6 . 0 (7) -
NEWS for Ruby 2
. 7 . 0 (6) -
REG
_ RESOURCE _ REQUIREMENTS _ LIST (12) -
allocation
_ sourcefile (12) -
allocation
_ sourceline (12) -
default
_ event _ sources (12) -
find
_ name (12) -
install
_ extend _ commands (12) - irb (12)
-
irb
/ cmd / load (12) - load (12)
- new (12)
- parse (24)
- parse! (12)
- rdoc (12)
- restore (12)
- rss (12)
-
source
_ location (24) -
to
_ json _ raw _ object (12)
検索結果
先頭5件
-
JSON
:: Parser # source -> String (18113.0) -
現在のソースのコピーを返します。
...現在のソースのコピーを返します。
//emlist[例][ruby]{
require 'json'
parser = JSON::Parser.new(DATA.read)
print parser.source
# => {
# => "Tanaka": {
# => "name":"tanaka",
# => "age":20
# => },
# => "Suzuki": {
# => "name":"suzuki",
# => "age":25
# => }
#... -
Win32
:: Registry :: Constants :: REG _ RESOURCE _ REQUIREMENTS _ LIST (6200.0) -
@todo
@todo
レジストリ値の型。 -
UnboundMethod
# source _ location -> [String , Integer] | nil (6131.0) -
ソースコードのファイル名と行番号を配列で返します。
...nil を返します。
//emlist[例][ruby]{
require 'time'
Time.instance_method(:zone).source_location # => nil
Time.instance_method(:httpdate).source_location # => ["/Users/user/.rbenv/versions/2.4.3/lib/ruby/2.4.0/time.rb", 654]
//}
@see Proc#source_location, Method#source_location... -
Method
# source _ location -> [String , Integer] | nil (6125.0) -
ソースコードのファイル名と行番号を配列で返します。
...す。
@see Proc#source_location
//emlist[例][ruby]{
# ------- /tmp/foo.rb ---------
class Foo
def foo; end
end
# ----- end of /tmp/foo.rb ----
require '/tmp/foo'
m = Foo.new.method(:foo) # => #<Method: Foo#foo>
m.source_location # => ["/tmp/foo.rb", 2]
method(:puts).source_location # => nil... -
WIN32OLE
_ TYPE # default _ event _ sources -> [WIN32OLE _ TYPE] (6118.0) -
型が持つソースインターフェイスを取得します。
...型が持つソースインターフェイスを取得します。
default_event_sourcesメソッドは、selfがCoClass(コンポーネントクラス)
の場合、そのクラスがサポートするデフォルトのソースインターフェイス(イ
ベントの通知元となるイン......ない場合は空配列を返します。
tobj = WIN32OLE_TYPE.new('Microsoft Excel 14.0 Object Library', 'Worksheet')
tobj.default_event_sources.map {|intf| intf.name} #=> ["DocEvents"]
WIN32OLE_EVENT.newでインターフェイス名を指定しない場合は、ここで
返されたイ......ding : cp932
require 'win32ole'
type = WIN32OLE_TYPE.new('Microsoft Internet Controls', 'InternetExplorer')
ctl = WIN32OLE.new(type.progid)
source = type.default_event_sources[0]
class WebEvent
def initialize
@completed = false
end
attr_reader :completed
end
source.ole_methods... -
ObjectSpace
. # allocation _ sourcefile(object) -> String (6106.0) -
objectの元となったソースファイル名を返します。
...例:test.rbというファイルで下記のスクリプトを実行した場合][ruby]{
require 'objspace'
ObjectSpace::trace_object_allocations_start
obj = Object.new
puts "file:#{ObjectSpace::allocation_sourcefile(obj)}" # => file:test.rb
ObjectSpace::trace_object_allocations_stop
//}
@see Ob... -
ObjectSpace
. # allocation _ sourceline(object) -> Integer (6106.0) -
objectの元となったソースファイルの行番号を返します。
...号を返します。存在しない場合はnilを返します。
//emlist[例][ruby]{
require 'objspace'
ObjectSpace::trace_object_allocations_start
obj = Object.new
puts "line:#{ObjectSpace::allocation_sourceline(obj)}" # => line:4
ObjectSpace::trace_object_allocations_stop
//}
@see ObjectSpa... -
Gem
:: SourceIndex # find _ name(gem _ name , version _ requirement = Gem :: Requirement . default) -> Gem :: Specification (3200.0) -
短い名前で正確にマッチする Gem を返します。
...短い名前で正確にマッチする Gem を返します。
@param gem_name Gem の名前を指定します。
@param version_requirement
@see Gem::Requirement... -
rss (222.0)
-
RSS を扱うためのライブラリです。
...ールはそれぞれ、
* Dublin Core モジュール http://web.resource.org/rss/1.0/modules/dc/
* Syndication モジュール http://web.resource.org/rss/1.0/modules/syndication/
* Content モジュール http://web.resource.org/rss/1.0/modules/content/
* Trackback モジュール http://mad......skills.com/public/xml/rss/module/trackback/
* Image モジュール http://web.resource.org/rss/1.0/modules/image/
をサポートしています。
ただし,Content モジュールは content:encoded しかサポートしていません.
=== パース
RSS をパースしたい場合は RSS:......でパースするには以下のよ
うにします。ここで、変数 rss_source には RSS 1.0 形式の文
字列が格納されているものとします。
require 'rss'
rss = RSS::Parser.parse(rss_source, true)
RSS::Parser.parse の第二引数は省略すると true が指定され...