Flowdock
method

generate_constants

Importance_0
v1_9_2_180 - Show latest stable - 0 notes - Class: WIN32COMGen
generate_constants(klass, io = STDOUT) public

No documentation

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

Hide source
# File ext/win32ole/sample/olegen.rb, line 228
  def generate_constants(klass, io = STDOUT)
    klass.variables.select {|v|
      v.visible? && v.variable_kind == 'CONSTANT'
    }.each do |v|
      io.print "  "
      io.print v.name.sub(/^./){$&.upcase}
      io.print " = "
      io.puts  v.value
    end
  end
Register or log in to add new notes.