Class: Meteor::ElementFactory
- Inherits:
-
Object
- Object
- Meteor::ElementFactory
- Defined in:
- lib/meteor.rb
Overview
Element Factory Class (要素ファクトリクラス)
Constant Summary collapse
- @@pf =
Meteor::ParserFactory.new
Class Method Summary collapse
-
.bind(*args) ⇒ Meteor::Parser
generate parser (パーサを作成する) generate parser (パーサを作成する).
- .bind_str(*args) ⇒ Object
-
.element(key) ⇒ Meteor::RootElement
get root element (ルート要素を取得する).
-
.options=(opts) ⇒ Object
set options (オプションをセットする).
Class Method Details
.bind(type, relative_path, enc) ⇒ Meteor::Parser .bind(type, relative_path) ⇒ Meteor::Parser
generate parser (パーサを作成する) generate parser (パーサを作成する)
1305 1306 1307 |
# File 'lib/meteor.rb', line 1305 def self.bind(*args) @@pf.bind(*args) end |
.bind_str(type, relative_url, doc) ⇒ Meteor::Parser .bind_str(relative_url, doc) ⇒ Meteor::Parser
1322 1323 1324 |
# File 'lib/meteor.rb', line 1322 def self.bind_str(*args) @@pf.bind_str(args) end |
.element(key) ⇒ Meteor::RootElement
get root element (ルート要素を取得する)
1331 1332 1333 |
# File 'lib/meteor.rb', line 1331 def self.element(key) @@pf.element(key) end |
.options=(opts) ⇒ Object
set options (オプションをセットする)
1288 1289 1290 |
# File 'lib/meteor.rb', line 1288 def self.(opts) @@pf. = opts end |