Module: FN::Node
- Defined in:
- lib/fn/node/base.rb,
lib/fn/node/root.rb,
lib/fn/node/context.rb
Defined Under Namespace
Modules: Base, Root
Classes: Context
Class Method Summary
collapse
Class Method Details
.Base(name, attributes = {}) ⇒ Object
4
5
6
7
8
9
|
# File 'lib/fn/node/base.rb', line 4
def self.Base(name, attributes = {})
n = XML::Node.new(name)
attributes.each {|k, v| n[k.to_s] = Base.value(v) }
n.extend(Base)
return n
end
|
.Root ⇒ Object
5
6
7
|
# File 'lib/fn/node/root.rb', line 5
def self.Root
Base("root")
end
|