Flowdock
method

def_attr

Importance_0
v1_8_7_330 - Show latest stable - 0 notes - Class: XSD::CodeGen::ClassDef
def_attr(attrname, writable = true, varname = nil) public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/xsd/codegen/classdef.rb, line 36
  def def_attr(attrname, writable = true, varname = nil)
    unless safevarname?(varname || attrname)
      raise ArgumentError.new("#{varname || attrname} seems to be unsafe")
    end
    @attrdef << [attrname, writable, varname]
  end
Register or log in to add new notes.