class RuboCop::TargetRuby::GemspecFile

def version_from_right_hand_side(right_hand_side)

def version_from_right_hand_side(right_hand_side)
  if right_hand_side.array_type?
    version_from_array(right_hand_side)
  elsif gem_requirement?(right_hand_side)
    right_hand_side.children.last.value
  else
    right_hand_side.value
  end
end