Add method of accsessor for ruby.