Skip to content

class:Record does not compile, undefined method error #1

Description

@cclose

I downloaded your gem ruby-adt 0.5.0 for use with ruby 1.9.3 and tried to use, but I receive a compile error "undefined method 'delegate'".

I'm not even trying to use it yet, i've simply added "require 'adt'" to the top of my (otherwise empty) file. The exact error received is:

ruby readAdt.rb
/home/xes/.rvm/gems/ruby-1.9.3-p385/gems/ruby-adt-0.5.0/lib/adt/record.rb:8:in <class:Record>': undefined methoddelegate' for ADT::Record:Class (NoMethodError)
from /home/xes/.rvm/gems/ruby-1.9.3-p385/gems/ruby-adt-0.5.0/lib/adt/record.rb:5:in <module:ADT>' from /home/xes/.rvm/gems/ruby-1.9.3-p385/gems/ruby-adt-0.5.0/lib/adt/record.rb:3:in<top (required)>'
from /home/xes/.rvm/rubies/ruby-1.9.3-p385/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require' from /home/xes/.rvm/rubies/ruby-1.9.3-p385/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:inrequire'
from /home/xes/.rvm/gems/ruby-1.9.3-p385/gems/ruby-adt-0.5.0/lib/adt.rb:18:in <top (required)>' from /home/xes/.rvm/rubies/ruby-1.9.3-p385/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:inrequire'
from /home/xes/.rvm/rubies/ruby-1.9.3-p385/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:in rescue in require' from /home/xes/.rvm/rubies/ruby-1.9.3-p385/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:inrequire'
from readAdt.rb:4:in `

'

Full source code is:

!/usr/bin/ruby

require 'rubygems'
require 'adt'

table = ADT::Table.new("messageinfo.adt")

table.each do |record|

    #puts record.id

end

puts "It worked!"

This is fresh install of ruby 1.9.3, using the rvm. The only gem i've installed is mysql2 and ruby-adt

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions