# Gtk::Builder#objects throws

**URL:** <https://www.ruby-forum.com/t/gtk-builder-objects-throws/193973>\
**Category:** Ruby-Gnome 2\
**Created:** [August 27, 2010, 12:14pm UTC](https://www.ruby-forum.com/t/gtk-builder-objects-throws/193973 "2010-08-27T12:14:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ribbed21](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/f9ae1b/32.png) [@ribbed21](https://www.ruby-forum.com/u/ribbed21)\
**Post date:** [August 27, 2010, 12:14pm UTC](https://www.ruby-forum.com/t/gtk-builder-objects-throws/193973/1 "2010-08-27T12:14:31Z")

</div>

Hi,

I’ve found out this behaviour of Gtk::Builder just now.  
Gtk::Builder#objects used to return an array with all the interface  
objects loaded from a definition, now when calling the method it just  
throws “(null) isn’t supported (TypeError)”.

Here’s a test case.

require ‘rubygems’  
require ‘libglade2’

definition = ‘  
  
  
600  
400  
True  
  
  
  
  
’

builder = Gtk::Builder.new  
builder.add(definition)  
builder.objects

Is this by design(i.e. Builder#objects is now deprecated, has a  
different usage)?

–  
Andrea D.

> **[GitHub - bolthar/freightrain: Ruby desktop development made easy](https://github.com/bolthar/freightrain)**
>
> Ruby desktop development made easy. Contribute to bolthar/freightrain development by creating an account on GitHub.

> **[using (IMHO)](https://usingimho.wordpress.com)**
>
> Andrea Dallera 's blog
