# Kirbybase: Displaying a field value

**URL:** <https://www.ruby-forum.com/t/kirbybase-displaying-a-field-value/49295>\
**Category:** Ruby\
**Created:** [December 2, 2005, 8:44am UTC](https://www.ruby-forum.com/t/kirbybase-displaying-a-field-value/49295 "2005-12-02T08:44:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![basi\_lio](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/848f3c/32.png) [@basi\_lio](https://www.ruby-forum.com/u/basi_lio)\
**Post date:** [December 2, 2005, 8:44am UTC](https://www.ruby-forum.com/t/kirbybase-displaying-a-field-value/49295/1 "2005-12-02T08:44:04Z")

</div>

Hello,  
This is likely to be another one of those embarrassing questions.

I have a table of tokens, one token one record, which I’d like to  
process as strings, for example:

tgl\_tokens.select.each do |t|  
puts t.to\_s  
end

I expect, say:

Retraction  
headline

But I get:

#\<struct #Class:0x4dee4a8 recno=579, tgltoken=“Retraction”\>  
#\<struct #Class:0x4dee4a8 recno=580, tgltoken=“headline”\>

How do I get the expected results?

Thanks for the help.  
basi

---

<div class="post-metadata">

**Author:** ![basi\_lio](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/848f3c/32.png) [@basi\_lio](https://www.ruby-forum.com/u/basi_lio)\
**Post date:** [December 2, 2005, 9:04am UTC](https://www.ruby-forum.com/t/kirbybase-displaying-a-field-value/49295/2 "2005-12-02T09:04:24Z")

</div>

I knew this was an embarrassing question. I got it:

puts t.tgltoken

basi

---

<div class="post-metadata">

**Author:** ![basi\_lio](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/848f3c/32.png) [@basi\_lio](https://www.ruby-forum.com/u/basi_lio)\
**Post date:** [December 2, 2005, 8:48am UTC](https://www.ruby-forum.com/t/kirbybase-displaying-a-field-value/49295/3 "2005-12-02T08:48:07Z")

</div>

I also tried simply:

puts t

but I got the same results.

basi
