Class REXML::NotationDecl
In: rexml/doctype.rb
Parent: Child

Methods

name   new   to_s   write  

Attributes

public  [RW] 
system  [RW] 

Public Class methods

[Source]

# File rexml/doctype.rb, line 244
    def initialize name, middle, pub, sys
      super(nil)
      @name = name
      @middle = middle
      @public = pub
      @system = sys
    end

Public Instance methods

This method retrieves the name of the notation.

Method contributed by Henrik Martensson

[Source]

# File rexml/doctype.rb, line 267
    def name
      @name
    end

[Source]

# File rexml/doctype.rb, line 252
    def to_s
      "<!NOTATION #@name #@middle#{
        @public ? ' ' + public.inspect : '' 
      }#{
        @system ? ' ' +@system.inspect : ''
      }>"
    end

[Source]

# File rexml/doctype.rb, line 260
    def write( output, indent=-1 )
      output << to_s
    end

[Validate]

ruby-doc.org is hosted and run by James Britt and Happy Camper Studios, a Ruby application development company in Phoenix, Arizona. Ruby-doc.org was created in 2002 to promote the Ruby language and to help other Ruby hackers.

Documentation content on ruby-doc.org is provided by remarkable members of the Ruby community.

For more information on the Ruby programming language, visit ruby-lang.org.

Want to help improve Ruby's API docs? See Ruby Documentation Guidelines.