Grub2 misc ruby

good idea even if it is only internal method.