Without an example of the code I don't know what the Bone object implements, this is how you would define and instance method on the bone object:
Code:
class Bone
def give_name(name)
# manipulate the name here
end
end
If you post up the Bone class code it would help us to be able to shoe you how to actually change/assign the name. You may simply be able to do something like this:
Code:
class Bone
attr_accessor :name
end
Which would create getter and setter methods for the @name attribute