[fxruby-users] FXRuby, blocks and hash (? should this work}

Vladimir Konrad v.konrad at lse.ac.uk
Sat Feb 9 09:27:20 EST 2008

Example code (:opts omitted)

It is done in initialize of Win < FXMainWinow:

@cg = {}

FXMatrix.new {|m|
  FXLabel.new(m, "Log-in name: ")
  @cg[:login] = {:name => FXTextField.new(m, 25)}

  p @cg[:login][:name].class

  FXLabel.new(m, "Password: ")
  @cg[:login] = {:password => FXTextField.new(m, 25)}

p @cg[:login][:name].class

output is:


The question is, why id disappears?


Please access the attached hyperlink for an important electronic communications disclaimer: http://www.lse.ac.uk/collections/secretariat/legal/disclaimer.htm

More information about the fxruby-users mailing list