static public Method

AttlistDecl.new(source)

Create an AttlistDecl, pulling the information from a Source. Notice that this isn’t very convenient; to create an AttlistDecl, you basically have to format it yourself, and then have the initializer parse it. Sorry, but for the forseeable future, DTD support in REXML is pretty weak on convenience. Have I mentioned how much I hate DTDs?

Source Code

# File rexml/attlistdecl.rb, line 28
def initialize(source)
        super()
        if (source.kind_of? Array)
                @element_name, @pairs, @contents = *source
        end
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.