class REXML::NotationDecl

属性

public[读写]
system[读写]

公共类方法

new(name, middle, pub, sys) 点击切换源代码
调用父类方法 REXML::Child::new
# File rexml-3.4.0/lib/rexml/doctype.rb, line 282
def initialize name, middle, pub, sys
  super(nil)
  @name = name
  @middle = middle
  @public = pub
  @system = sys
end

公共实例方法

name() 点击切换源代码

此方法检索符号的名称。

此方法由 Henrik Martensson 贡献

# File rexml-3.4.0/lib/rexml/doctype.rb, line 307
def name
  @name
end
to_s() 点击切换源代码
# File rexml-3.4.0/lib/rexml/doctype.rb, line 290
def to_s
  context = nil
  context = parent.context if parent
  notation = "<!NOTATION #{@name}"
  reference_writer = ReferenceWriter.new(@middle, @public, @system, context)
  reference_writer.write(notation)
  notation << ">"
  notation
end
write( output, indent=-1 ) 点击切换源代码
# File rexml-3.4.0/lib/rexml/doctype.rb, line 300
def write( output, indent=-1 )
  output << to_s
end